pub struct FieldBlock<S> { /* private fields */ }Implementations§
Source§impl<S> FieldBlock<S>
impl<S> FieldBlock<S>
pub const fn from_storage(storage: S) -> Self
pub fn into_storage(self) -> S
pub fn storage(&self) -> &S
Source§impl<S: FieldStorage> FieldBlock<S>
impl<S: FieldStorage> FieldBlock<S>
Source§impl FieldBlock<Vec<OwnedField>>
impl FieldBlock<Vec<OwnedField>>
Source§impl FieldBlock<PackedFields<Pooled>>
impl FieldBlock<PackedFields<Pooled>>
pub fn from_pooled(pooled: Pooled) -> Self
pub fn from_fields(fields: &[Field<'_>]) -> Result<Self, PoolLayoutError>
pub fn from_headers(fields: &[Field<'_>]) -> Result<Self, PoolLayoutError>
pub fn append(&mut self, other: Self) -> Result<(), Self>
pub fn to_owned(&self) -> Vec<OwnedField>
Source§impl FieldBlock<PackedFields<Vec<u8>>>
impl FieldBlock<PackedFields<Vec<u8>>>
pub const fn new() -> Self
pub fn with_capacity(capacity: usize) -> Self
pub fn push( &mut self, name: &[u8], value: &[u8], ) -> Result<(), PackedFieldError<Infallible>>
pub fn push_encoded( &mut self, name: &[u8], value_len: usize, encode: impl FnOnce(&mut FieldValueWriter<'_>), ) -> Result<(), PackedFieldError<Infallible>>
pub fn try_push_parts<E>( &mut self, encode_name: impl FnOnce(&mut FieldValueWriter<'_>) -> Result<(), E>, encode_value: impl FnOnce(&mut FieldValueWriter<'_>, usize) -> Result<(), E>, ) -> Result<(usize, usize), PackedFieldError<E>>
pub fn as_bytes(&self) -> &[u8] ⓘ
pub fn iter_with_value_ranges(&self) -> PackedFieldRangeIter<'_> ⓘ
Trait Implementations§
Source§impl<S: Clone> Clone for FieldBlock<S>
impl<S: Clone> Clone for FieldBlock<S>
Source§fn clone(&self) -> FieldBlock<S>
fn clone(&self) -> FieldBlock<S>
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 moreSource§impl<S: FieldStorage> Debug for FieldBlock<S>
impl<S: FieldStorage> Debug for FieldBlock<S>
Source§impl Default for FieldBlock<Vec<OwnedField>>
impl Default for FieldBlock<Vec<OwnedField>>
Source§impl Default for FieldBlock<PackedFields<Vec<u8>>>
impl Default for FieldBlock<PackedFields<Vec<u8>>>
impl<S: FieldStorage> Eq for FieldBlock<S>
Source§impl<'a, S: FieldStorage> IntoIterator for &'a FieldBlock<S>
impl<'a, S: FieldStorage> IntoIterator for &'a FieldBlock<S>
Source§impl<S, T> PartialEq<FieldBlock<T>> for FieldBlock<S>where
S: FieldStorage,
T: FieldStorage,
impl<S, T> PartialEq<FieldBlock<T>> for FieldBlock<S>where
S: FieldStorage,
T: FieldStorage,
Auto Trait Implementations§
impl<S> Freeze for FieldBlock<S>where
S: Freeze,
impl<S> RefUnwindSafe for FieldBlock<S>where
S: RefUnwindSafe,
impl<S> Send for FieldBlock<S>where
S: Send,
impl<S> Sync for FieldBlock<S>where
S: Sync,
impl<S> Unpin for FieldBlock<S>where
S: Unpin,
impl<S> UnsafeUnpin for FieldBlock<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for FieldBlock<S>where
S: UnwindSafe,
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