Enum xsd_types::ShortValue
source · 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 copy 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
§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
§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 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