pub struct GroupSizeEncoding {
pub block_length: u16,
pub num_in_group: u32,
}Expand description
Group header encoding (u16 block length + u32 count).
Fields§
§block_length: u16Encoded block length of each group entry.
num_in_group: u32Number of entries in the group.
Implementations§
Source§impl GroupSizeEncoding
impl GroupSizeEncoding
Sourcepub const ENCODED_LENGTH: usize = 6
pub const ENCODED_LENGTH: usize = 6
Encoded length in bytes.
Sourcepub fn decode(buf: &[u8]) -> Result<Self, SbeDecodeError>
pub fn decode(buf: &[u8]) -> Result<Self, SbeDecodeError>
Decodes a group header from buf.
§Errors
Returns BufferTooShort if fewer than 6 bytes are available and
GroupSizeTooLarge when num_in_group exceeds MAX_GROUP_SIZE.
Trait Implementations§
Source§impl Clone for GroupSizeEncoding
impl Clone for GroupSizeEncoding
Source§fn clone(&self) -> GroupSizeEncoding
fn clone(&self) -> GroupSizeEncoding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GroupSizeEncoding
Source§impl Debug for GroupSizeEncoding
impl Debug for GroupSizeEncoding
impl Eq for GroupSizeEncoding
Source§impl PartialEq for GroupSizeEncoding
impl PartialEq for GroupSizeEncoding
Source§fn eq(&self, other: &GroupSizeEncoding) -> bool
fn eq(&self, other: &GroupSizeEncoding) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GroupSizeEncoding
Auto Trait Implementations§
impl Freeze for GroupSizeEncoding
impl RefUnwindSafe for GroupSizeEncoding
impl Send for GroupSizeEncoding
impl Sync for GroupSizeEncoding
impl Unpin for GroupSizeEncoding
impl UnsafeUnpin for GroupSizeEncoding
impl UnwindSafe for GroupSizeEncoding
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.