Trait janetrs::IsJanetAbstract
source · pub trait IsJanetAbstract {
type Get: IsJanetAbstract;
const SIZE: usize;
// Required method
fn type_info() -> &'static JanetAbstractType;
}
Expand description
The trait that encodes the information required to instantiate the implementer as
JanetAbstract
Required Associated Types§
sourcetype Get: IsJanetAbstract
type Get: IsJanetAbstract
The type that you get when you call JanetAbstract::get
family of functions.
This is usually set to Self
when the type does not implement Drop
, or
ManuallyDrop<Self>
if the type implements Drop
.
Required Associated Constants§
sourceconst SIZE: usize
const SIZE: usize
The size of the type that is being transformed as JanetAbstract
.
Usually mem::size_of<Self>()
Required Methods§
sourcefn type_info() -> &'static JanetAbstractType
fn type_info() -> &'static JanetAbstractType
Returns the table of the name of the Self
and all possible polymorphic function
pointer that a Abstract type can have in Janet.
Object Safety§
This trait is not object safe.