pub struct Type<'ty> {
pub kind: TypeKind<'ty>,
pub layout: LayoutKind,
pub id: ConstTypeId,
}
Fields§
§kind: TypeKind<'ty>
§layout: LayoutKind
§id: ConstTypeId
Implementations§
Source§impl<'ty> Type<'ty>
impl<'ty> Type<'ty>
pub const fn ptr<T: Reflect + ?Sized + 'static>() -> Self
pub const fn ptr_mut<T: Reflect + ?Sized + 'static>() -> Self
pub const fn reference<T: ?Sized + Reflect + 'static>() -> Self
pub const fn primitive<T: 'static>(primitive: PrimitiveType) -> Self
pub const fn array<T: Reflect + 'static, const N: usize>() -> Self
pub const fn slice<T: Reflect + 'static>() -> Self
Trait Implementations§
Auto Trait Implementations§
impl<'ty> Freeze for Type<'ty>
impl<'ty> RefUnwindSafe for Type<'ty>
impl<'ty> Send for Type<'ty>
impl<'ty> Sync for Type<'ty>
impl<'ty> Unpin for Type<'ty>
impl<'ty> UnwindSafe for Type<'ty>
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