pub struct TypeStruct { /* private fields */ }Implementations§
Source§impl TypeStruct
impl TypeStruct
pub fn metadata<T>(self, value: T) -> TypeStruct
pub fn system_metadata<T>(self, value: T) -> TypeStructwhere
T: TryInto<Option<SystemTypeMetadata>>,
<T as TryInto<Option<SystemTypeMetadata>>>::Error: Display,
pub fn type_<T>(self, value: T) -> TypeStruct
Trait Implementations§
Source§impl Clone for TypeStruct
impl Clone for TypeStruct
Source§fn clone(&self) -> TypeStruct
fn clone(&self) -> TypeStruct
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TypeStruct
impl Debug for TypeStruct
Source§impl Default for TypeStruct
impl Default for TypeStruct
Source§fn default() -> TypeStruct
fn default() -> TypeStruct
Returns the “default value” for a type. Read more
Source§impl From<TypeStruct> for TypeStruct
impl From<TypeStruct> for TypeStruct
Source§fn from(value: TypeStruct) -> TypeStruct
fn from(value: TypeStruct) -> TypeStruct
Converts to this type from the input type.
Source§impl TryFrom<TypeStruct> for TypeStruct
impl TryFrom<TypeStruct> for TypeStruct
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: TypeStruct) -> Result<TypeStruct, ConversionError>
fn try_from(value: TypeStruct) -> Result<TypeStruct, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Forget for TypeStruct
impl Freeze for TypeStructwhere
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
impl Move for TypeStruct
impl RefUnwindSafe for TypeStruct
impl Send for TypeStruct
impl Sync for TypeStruct
impl Unpin for TypeStruct
impl UnsafeUnpin for TypeStructwhere
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
impl UnwindSafe for TypeStruct
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