Struct apache_avro::Decimal
source · pub struct Decimal { /* private fields */ }
Trait Implementations§
source§impl PartialEq<Decimal> for Decimal
impl PartialEq<Decimal> for Decimal
source§impl TryFrom<&Decimal> for Vec<u8>
impl TryFrom<&Decimal> for Vec<u8>
Gets the internal byte array representation of a referenced decimal. Usage:
use apache_avro::Decimal;
use std::convert::TryFrom;
let decimal = Decimal::from(vec![1, 24]);
let maybe_bytes = <Vec<u8>>::try_from(&decimal);
Auto Trait Implementations§
impl RefUnwindSafe for Decimal
impl Send for Decimal
impl Sync for Decimal
impl Unpin for Decimal
impl UnwindSafe for Decimal
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