[][src]Struct savefile::Introspector

pub struct Introspector { /* fields omitted */ }

A helper which allows navigating an introspected object. It remembers a path down into the guts of the object.

Methods

impl Introspector[src]

pub fn new() -> Introspector[src]

Returns a new Introspector with no limit to the number of fields introspected per level

pub fn new_with(child_load_count: usize) -> Introspector[src]

Returns a new Introspector which will not enumerate more than 'child_load_count' elements on each level (useful for performance reasons to stop a 1 megabyte byte array from overwhelming the user of the introspector).

pub fn num_frames(&self) -> usize[src]

The current number of nodes in the tree.

pub fn do_introspect<'a>(
    &mut self,
    object: &'a dyn Introspect,
    navigation_command: IntrospectorNavCommand
) -> Result<IntrospectionResult, IntrospectionError>
[src]

Navigate the introspection tree using the given navigation_command, and also return the tree as an IntrospectionResult.

Trait Implementations

impl Clone for Introspector[src]

impl Debug for Introspector[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,