pub enum ShortValue {
Short(Short),
Byte(Byte),
}
Expand description
Any specialized Short
value.
Variants§
Implementations§
Source§impl ShortValue
impl ShortValue
pub fn datatype(&self) -> ShortDatatype
Trait Implementations§
Source§impl Clone for ShortValue
impl Clone for ShortValue
Source§fn clone(&self) -> ShortValue
fn clone(&self) -> ShortValue
Returns a duplicate of the value. Read more
1.0.0 · 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 ShortValue
impl Debug for ShortValue
Source§impl Display for ShortValue
impl Display for ShortValue
Source§impl From<ShortValue> for DecimalValue
impl From<ShortValue> for DecimalValue
Source§fn from(value: ShortValue) -> Self
fn from(value: ShortValue) -> Self
Converts to this type from the input type.
Source§impl From<ShortValue> for IntValue
impl From<ShortValue> for IntValue
Source§fn from(value: ShortValue) -> Self
fn from(value: ShortValue) -> Self
Converts to this type from the input type.
Source§impl From<ShortValue> for IntegerValue
impl From<ShortValue> for IntegerValue
Source§fn from(value: ShortValue) -> Self
fn from(value: ShortValue) -> Self
Converts to this type from the input type.
Source§impl From<ShortValue> for LongValue
impl From<ShortValue> for LongValue
Source§fn from(value: ShortValue) -> Self
fn from(value: ShortValue) -> Self
Converts to this type from the input type.
Source§impl From<ShortValue> for Value
impl From<ShortValue> for Value
Source§fn from(value: ShortValue) -> Self
fn from(value: ShortValue) -> Self
Converts to this type from the input type.
Source§impl TryFrom<DecimalValue> for ShortValue
impl TryFrom<DecimalValue> for ShortValue
Source§type Error = DecimalValue
type Error = DecimalValue
The type returned in the event of a conversion error.
Source§fn try_from(value: DecimalValue) -> Result<Self, DecimalValue>
fn try_from(value: DecimalValue) -> Result<Self, DecimalValue>
Performs the conversion.
Source§impl TryFrom<IntValue> for ShortValue
impl TryFrom<IntValue> for ShortValue
Source§impl TryFrom<IntegerValue> for ShortValue
impl TryFrom<IntegerValue> for ShortValue
Source§type Error = IntegerValue
type Error = IntegerValue
The type returned in the event of a conversion error.
Source§fn try_from(value: IntegerValue) -> Result<Self, IntegerValue>
fn try_from(value: IntegerValue) -> Result<Self, IntegerValue>
Performs the conversion.
Source§impl TryFrom<LongValue> for ShortValue
impl TryFrom<LongValue> for ShortValue
Source§impl TryFrom<Value> for ShortValue
impl TryFrom<Value> for ShortValue
Auto Trait Implementations§
impl Freeze for ShortValue
impl RefUnwindSafe for ShortValue
impl Send for ShortValue
impl Sync for ShortValue
impl Unpin for ShortValue
impl UnwindSafe for ShortValue
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