pub struct ClientAttTableView<'a> { /* private fields */ }Expand description
A read-only view over a serialized ClientAttTable.
The view borrows the raw table format directly: a little-endian entry count, a little-endian value byte length, a
sorted index of 4-byte entries, and the value bytes. Unlike ClientAttTable, the borrowed bytes may come from
arbitrary storage and do not need the owning table’s alignment. Use try_from_raw() to
validate the buffer before reading values.
Implementations§
Source§impl<'a> ClientAttTableView<'a>
impl<'a> ClientAttTableView<'a>
Sourcepub fn try_from_raw(data: &'a [u8]) -> Result<Self, Error>
pub fn try_from_raw(data: &'a [u8]) -> Result<Self, Error>
Constructs a ClientAttTableView from raw serialized table bytes.
The bytes are typically obtained from ClientAttTable::raw(), but may also come from persistent storage or
another byte buffer. Returns an error if the slice is too short, the index is malformed, or any value length is
outside its encoded capacity.
Trait Implementations§
Source§impl<'a> Clone for ClientAttTableView<'a>
impl<'a> Clone for ClientAttTableView<'a>
Source§fn clone(&self) -> ClientAttTableView<'a>
fn clone(&self) -> ClientAttTableView<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ClientAttTableView<'a>
impl<'a> Debug for ClientAttTableView<'a>
Source§impl<'a> Format for ClientAttTableView<'a>
impl<'a> Format for ClientAttTableView<'a>
impl<'a> Copy for ClientAttTableView<'a>
Auto Trait Implementations§
impl<'a> Freeze for ClientAttTableView<'a>
impl<'a> RefUnwindSafe for ClientAttTableView<'a>
impl<'a> Send for ClientAttTableView<'a>
impl<'a> Sync for ClientAttTableView<'a>
impl<'a> Unpin for ClientAttTableView<'a>
impl<'a> UnwindSafe for ClientAttTableView<'a>
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