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