pub struct SborPath(Vec<usize>);
Expand description
A series of indexes which describes some value in the sbor tree
Tuple Fields§
§0: Vec<usize>
Implementations§
source§impl SborPath
impl SborPath
pub fn new(path: Vec<usize>) -> Self
pub fn get_from_value<'a, X: CustomValueKind, Y: CustomValue<X>>( &'a self, value: &'a Value<X, Y> ) -> Option<&'a Value<X, Y>>
pub fn get_from_value_mut<'a, X: CustomValueKind, Y: CustomValue<X>>( &'a self, value: &'a mut Value<X, Y> ) -> Option<&'a mut Value<X, Y>>
Trait Implementations§
source§impl From<SborPath> for SborPathBuf
impl From<SborPath> for SborPathBuf
source§impl From<SborPathBuf> for SborPath
impl From<SborPathBuf> for SborPath
source§fn from(mutable: SborPathBuf) -> Self
fn from(mutable: SborPathBuf) -> Self
Converts to this type from the input type.
source§impl PartialEq for SborPath
impl PartialEq for SborPath
impl Eq for SborPath
impl StructuralPartialEq for SborPath
Auto Trait Implementations§
impl RefUnwindSafe for SborPath
impl Send for SborPath
impl Sync for SborPath
impl Unpin for SborPath
impl UnwindSafe for SborPath
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.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more