Struct dusk_api::Type [−][src]
Structure representing main characteristics of an object type needed for the program, using the plugin, that either imports or defines this type in case this type is not present in the user program itself
A Type object contains
- type name, used for identifying this type
- its
TypeIdfor Any trait to work properly
Fields
name: &'static strName for the TypeId owner to be reffered to as a static
string
type_id: TypeIdTypeId object, gotten from the structure, being
provided to the program, that is using the plugin
See std::any::TypeId documentation to find out how
to get a type id of a type
Auto Trait Implementations
impl RefUnwindSafe for Type[src]
impl Send for Type[src]
impl Sync for Type[src]
impl Unpin for Type[src]
impl UnwindSafe for Type[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,