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