pub struct Slice {
pub start: u32,
pub len: u32,
}Expand description
A run of items in one of the side vectors.
Empty is len == 0, and start is then meaningless rather than wrong. There is no Option
wrapper because an absent list and an empty list are the same thing everywhere this is used.
Fields§
§start: u32The first item.
len: u32How many items.
Implementations§
Trait Implementations§
impl Copy for Slice
impl Eq for Slice
impl StructuralPartialEq for Slice
Auto Trait Implementations§
impl Freeze for Slice
impl RefUnwindSafe for Slice
impl Send for Slice
impl Sync for Slice
impl Unpin for Slice
impl UnsafeUnpin for Slice
impl UnwindSafe for Slice
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