pub struct BytesMeta {
pub prefix_len: usize,
pub len: usize,
pub padding: usize,
}Expand description
ton::bytes meta.
NOTE: Doesn’t consume slice (leaves offset as unchanged).
Fields§
§prefix_len: usizeLength in bytes of the prefix (1 or 4 bytes).
len: usizeLength in bytes.
padding: usizePrecomputed bytes padding (0..=3).
Trait Implementations§
impl Copy for BytesMeta
impl Eq for BytesMeta
impl StructuralPartialEq for BytesMeta
Auto Trait Implementations§
impl Freeze for BytesMeta
impl RefUnwindSafe for BytesMeta
impl Send for BytesMeta
impl Sync for BytesMeta
impl Unpin for BytesMeta
impl UnwindSafe for BytesMeta
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