#[repr(transparent)]pub struct BranchPtr(_);
Expand description
Methods from Deref<Target = Branch>
sourcepub fn type_ref(&self) -> TypeRefs
pub fn type_ref(&self) -> TypeRefs
Returns an identifier of an underlying complex data type (eg. is it an Array or a Map).
sourcepub fn len(&self) -> u32
pub fn len(&self) -> u32
Returns a length of an indexed sequence component of a current branch node. Map component elements are computed on demand.
pub fn content_len(&self, _: &Transaction) -> u32
pub fn observe_deep<F>(&mut self, f: F) -> Subscription<Events> where
F: Fn(&Transaction, &Events) + 'static,
pub fn unobserve_deep(&mut self, subscription_id: SubscriptionId)
Trait Implementations
sourceimpl From<BranchPtr> for XmlElement
impl From<BranchPtr> for XmlElement
sourceimpl Into<Value> for BranchPtr
impl Into<Value> for BranchPtr
sourcefn into(self) -> Value
fn into(self) -> Value
Converts current branch data into a Value. It uses a type ref information to resolve, which value variant is a correct one for this branch. Since branch represent only complex types Value::Any will never be returned from this method.
impl Copy for BranchPtr
impl Eq for BranchPtr
Auto Trait Implementations
impl !RefUnwindSafe for BranchPtr
impl !Send for BranchPtr
impl !Sync for BranchPtr
impl Unpin for BranchPtr
impl !UnwindSafe for BranchPtr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more