Struct savefile::IntrospectionResult
source · pub struct IntrospectionResult {
pub frames: Vec<IntrospectionFrame>,
/* private fields */
}
Expand description
An introspection tree. Note that each node in the tree can only have one expanded field, and thus at most one child (a bit of a boring ‘tree’ :-) ).
Fields§
§frames: Vec<IntrospectionFrame>
The levels in the tree
Implementations§
source§impl IntrospectionResult
impl IntrospectionResult
sourcepub fn total_index(&self, index: usize) -> Option<IntrospectedElement>
pub fn total_index(&self, index: usize) -> Option<IntrospectedElement>
Indexes the result with a single index, which will reach all levels in the tree. Printing all elements in the order returned here, with indentation equal to item.key.depth, will yield a readable tree.
Trait Implementations§
source§impl Clone for IntrospectionResult
impl Clone for IntrospectionResult
source§fn clone(&self) -> IntrospectionResult
fn clone(&self) -> IntrospectionResult
Returns a copy 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 Debug for IntrospectionResult
impl Debug for IntrospectionResult
Auto Trait Implementations§
impl RefUnwindSafe for IntrospectionResult
impl Send for IntrospectionResult
impl Sync for IntrospectionResult
impl Unpin for IntrospectionResult
impl UnwindSafe for IntrospectionResult
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