Struct savefile::IntrospectedElementKey
source · pub struct IntrospectedElementKey {
pub depth: usize,
pub key: String,
pub key_disambiguator: usize,
}
Expand description
Identifies an introspected element somewhere in the introspection tree of an object.
Fields§
§depth: usize
Depth in the tree. Fields on top level struct are at depth 0.
key: String
The name of the field
key_disambiguator: usize
If several fields have the same name, the key_disambiguator is 0 for the first field, 1 for the next, etc.
Trait Implementations§
source§impl Clone for IntrospectedElementKey
impl Clone for IntrospectedElementKey
source§fn clone(&self) -> IntrospectedElementKey
fn clone(&self) -> IntrospectedElementKey
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 IntrospectedElementKey
impl Debug for IntrospectedElementKey
source§impl Default for IntrospectedElementKey
impl Default for IntrospectedElementKey
source§impl Display for IntrospectedElementKey
impl Display for IntrospectedElementKey
source§impl PartialEq for IntrospectedElementKey
impl PartialEq for IntrospectedElementKey
source§fn eq(&self, other: &IntrospectedElementKey) -> bool
fn eq(&self, other: &IntrospectedElementKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IntrospectedElementKey
impl StructuralPartialEq for IntrospectedElementKey
Auto Trait Implementations§
impl RefUnwindSafe for IntrospectedElementKey
impl Send for IntrospectedElementKey
impl Sync for IntrospectedElementKey
impl Unpin for IntrospectedElementKey
impl UnwindSafe for IntrospectedElementKey
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.