Trait tvm::runtime::object::IsObjectRef [−][src]
pub trait IsObjectRef: Clone + Into<RetValue> + for<'a> AsArgValue<'a> + TryFrom<RetValue, Error = Error, Error = Error> + for<'a> TryFrom<ArgValue<'a>> + Debug {
type Object: IsObject;
fn as_ptr(&self) -> Option<&ObjectPtr<Self::Object>>;
fn into_ptr(self) -> Option<ObjectPtr<Self::Object>>;
fn from_ptr(object_ptr: Option<ObjectPtr<Self::Object>>) -> Self;
fn null() -> Self { ... }
fn into_arg_value(&'a self) -> ArgValue<'a> { ... }
fn from_arg_value(arg_value: ArgValue<'a>) -> Result<Self, Error> { ... }
fn into_ret_value(self) -> RetValue { ... }
fn from_ret_value(ret_value: RetValue) -> Result<Self, Error> { ... }
fn upcast<U>(self) -> U
where
U: IsObjectRef,
Self::Object: AsRef<<U as IsObjectRef>::Object>,
{ ... }
fn downcast<U>(self) -> Result<U, Error>
where
U: IsObjectRef,
<U as IsObjectRef>::Object: AsRef<Self::Object>,
{ ... }
}