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