pub struct Type { /* private fields */ }
Implementations§
Source§impl Type
impl Type
pub fn by_name( name: &str, module_name: &str, registry: &Registry, ) -> Option<Type>
pub fn of<T>(registry: &Registry) -> Option<Type>where
T: 'static,
pub fn new(handle: Arc<Type>) -> Type
pub fn handle(&self) -> Option<&Arc<Type>>
pub fn is<T>(&self) -> boolwhere
T: 'static,
pub fn is_same_as(&self, other: &Type) -> bool
pub fn type_hash(&self) -> Option<TypeHash>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more