pub struct Decimal<'a> {
pub _tab: Table<'a>,
}
Expand description
Exact decimal value represented as an integer value in two’s complement. Currently only 128-bit (16-byte) and 256-bit (32-byte) integers are used. The representation uses the endianness indicated in the Schema.
Fields
_tab: Table<'a>
Implementations
sourceimpl<'a> Decimal<'a>
impl<'a> Decimal<'a>
pub const VT_PRECISION: VOffsetT = 4u16
pub const VT_SCALE: VOffsetT = 6u16
pub const VT_BITWIDTH: VOffsetT = 8u16
pub unsafe fn init_from_table(table: Table<'a>) -> Self
pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr>(
_fbb: &'mut_bldr mut FlatBufferBuilder<'bldr>,
args: &'args DecimalArgs
) -> WIPOffset<Decimal<'bldr>>
Trait Implementations
sourceimpl<'a> PartialEq<Decimal<'a>> for Decimal<'a>
impl<'a> PartialEq<Decimal<'a>> for Decimal<'a>
sourceimpl Verifiable for Decimal<'_>
impl Verifiable for Decimal<'_>
sourcefn run_verifier(
v: &mut Verifier<'_, '_>,
pos: usize
) -> Result<(), InvalidFlatbuffer>
fn run_verifier(
v: &mut Verifier<'_, '_>,
pos: usize
) -> Result<(), InvalidFlatbuffer>
Runs the verifier for this type, assuming its at position
pos
in the verifier’s buffer.
Should not need to be called directly. Read moreimpl<'a> Copy for Decimal<'a>
impl<'a> StructuralPartialEq for Decimal<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Decimal<'a>
impl<'a> Send for Decimal<'a>
impl<'a> Sync for Decimal<'a>
impl<'a> Unpin for Decimal<'a>
impl<'a> UnwindSafe for Decimal<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more