pub enum MemView {
Whole,
Member(String, Box<MemView>),
Index(usize, Box<MemView>),
}Expand description
Path to a memory view of an instance.
See Instance::view
Variants§
Whole
View the whole instance.
Member(String, Box<MemView>)
Access a struct member or vec component.
Index(usize, Box<MemView>)
Access an array, vec or mat component.
Implementations§
Source§impl MemView
impl MemView
pub fn append_member(&mut self, comp: String)
pub fn append_index(&mut self, index: usize)
Trait Implementations§
impl Eq for MemView
impl StructuralPartialEq for MemView
Auto Trait Implementations§
impl Freeze for MemView
impl RefUnwindSafe for MemView
impl Send for MemView
impl Sync for MemView
impl Unpin for MemView
impl UnwindSafe for MemView
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more