[−][src]Struct savefile::Introspector
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]
&mut self,
object: &'a dyn Introspect,
navigation_command: IntrospectorNavCommand
) -> Result<IntrospectionResult, IntrospectionError>
Navigate the introspection tree using the given navigation_command, and also return the tree as an IntrospectionResult.
Trait Implementations
impl Clone for Introspector
[src]
fn clone(&self) -> Introspector
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Introspector
[src]
Auto Trait Implementations
impl RefUnwindSafe for Introspector
impl Send for Introspector
impl Sync for Introspector
impl Unpin for Introspector
impl UnwindSafe for Introspector
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[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]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,