SbeGroupElement

Struct SbeGroupElement 

Source
pub struct SbeGroupElement<'a> { /* private fields */ }
Expand description

Decoder for a single group element

Implementations§

Source§

impl<'a> SbeGroupElement<'a>

Source

pub fn new( reader: &'a SbeReader<'a>, offset: usize, block_length: u16, ) -> SbeResult<Self>

Create a new group element decoder

Source

pub fn read_u8(&self, field_offset: usize) -> SbeResult<u8>

Read u8 field at element offset

Source

pub fn read_u16(&self, field_offset: usize) -> SbeResult<u16>

Read u16 field at element offset

Source

pub fn read_u32(&self, field_offset: usize) -> SbeResult<u32>

Read u32 field at element offset

Source

pub fn read_u64(&self, field_offset: usize) -> SbeResult<u64>

Read u64 field at element offset

Source

pub fn read_f32(&self, field_offset: usize) -> SbeResult<f32>

Read f32 field at element offset

Source

pub fn read_string( &self, field_offset: usize, length: usize, ) -> SbeResult<&'a str>

Read string field at element offset

Source

pub fn read_bytes( &self, field_offset: usize, length: usize, ) -> SbeResult<&'a [u8]>

Read bytes at element offset

Source

pub fn read_nested_group( &self, field_offset: usize, ) -> SbeResult<SbeGroupIterator<'a>>

Get nested group within this element

Auto Trait Implementations§

§

impl<'a> Freeze for SbeGroupElement<'a>

§

impl<'a> RefUnwindSafe for SbeGroupElement<'a>

§

impl<'a> Send for SbeGroupElement<'a>

§

impl<'a> Sync for SbeGroupElement<'a>

§

impl<'a> Unpin for SbeGroupElement<'a>

§

impl<'a> UnwindSafe for SbeGroupElement<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.