pub struct TypedPointer<T: MetaValue, U: MetaValue> { /* private fields */ }Implementations§
Source§impl<Root: MetaValue, U: MetaValue> TypedPointer<Root, U>
impl<Root: MetaValue, U: MetaValue> TypedPointer<Root, U>
pub fn new(value: Arc<Root>) -> TypedPointer<Root, Root>
pub fn root(&self) -> TypedPointer<Root, Root>
pub fn path(&self) -> &str
pub fn value(&self) -> Option<&U>
pub fn descend<Child: MetaValue>( &self, field: &Key, ) -> Option<TypedPointer<Root, Child>>
pub fn ascend(&self) -> Option<(Path, Key)>
Trait Implementations§
Source§impl<T: Clone + MetaValue, U: Clone + MetaValue> Clone for TypedPointer<T, U>
impl<T: Clone + MetaValue, U: Clone + MetaValue> Clone for TypedPointer<T, U>
Source§fn clone(&self) -> TypedPointer<T, U>
fn clone(&self) -> TypedPointer<T, U>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<T, U> Freeze for TypedPointer<T, U>
impl<T, U> RefUnwindSafe for TypedPointer<T, U>where
U: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, U> Send for TypedPointer<T, U>
impl<T, U> Sync for TypedPointer<T, U>
impl<T, U> Unpin for TypedPointer<T, U>
impl<T, U> UnsafeUnpin for TypedPointer<T, U>
impl<T, U> UnwindSafe for TypedPointer<T, U>where
T: RefUnwindSafe,
U: RefUnwindSafe,
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