pub struct TypeString { /* private fields */ }Implementations§
Source§impl TypeString
impl TypeString
pub fn metadata<T>(self, value: T) -> TypeString
pub fn system_metadata<T>(self, value: T) -> TypeStringwhere
T: TryInto<Option<SystemTypeMetadata>>,
<T as TryInto<Option<SystemTypeMetadata>>>::Error: Display,
pub fn type_<T>(self, value: T) -> TypeString
Trait Implementations§
Source§impl Clone for TypeString
impl Clone for TypeString
Source§fn clone(&self) -> TypeString
fn clone(&self) -> TypeString
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 TypeString
impl Debug for TypeString
Source§impl Default for TypeString
impl Default for TypeString
Source§fn default() -> TypeString
fn default() -> TypeString
Returns the “default value” for a type. Read more
Source§impl From<TypeString> for TypeString
impl From<TypeString> for TypeString
Source§fn from(value: TypeString) -> TypeString
fn from(value: TypeString) -> TypeString
Converts to this type from the input type.
Source§impl TryFrom<TypeString> for TypeString
impl TryFrom<TypeString> for TypeString
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: TypeString) -> Result<TypeString, ConversionError>
fn try_from(value: TypeString) -> Result<TypeString, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Forget for TypeString
impl Freeze for TypeStringwhere
*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 TypeString
impl RefUnwindSafe for TypeString
impl Send for TypeString
impl Sync for TypeString
impl Unpin for TypeString
impl UnsafeUnpin for TypeStringwhere
*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 TypeString
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