pub struct Span {
pub at: u32,
pub len: u32,
}Expand description
Where something is in a blob, for a caller with no reason to pack it tighter.
Eight bytes. A hash value uses this, because a value can be as long as the 512 MiB Redis puts on everything and there is no shorter length that holds it.
Fields§
§at: u32Where the bytes start.
len: u32How many of them there are.
Trait Implementations§
impl Copy for Span
impl Eq for Span
impl StructuralPartialEq for Span
Auto Trait Implementations§
impl Freeze for Span
impl RefUnwindSafe for Span
impl Send for Span
impl Sync for Span
impl Unpin for Span
impl UnsafeUnpin for Span
impl UnwindSafe for Span
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