pub struct BranchPtr(/* private fields */);
Expand description
Methods from Deref<Target = Branch>§
pub fn is_deleted(&self) -> bool
pub fn id(&self) -> BranchID
pub fn as_subdoc(&self) -> Option<Doc>
sourcepub fn type_ref(&self) -> &TypeRef
pub fn type_ref(&self) -> &TypeRef
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) -> u32
pub fn observe<F>(&mut self, f: F) -> Subscription
pub fn observe_deep<F>(&self, f: F) -> Subscription
Trait Implementations§
source§impl From<BranchPtr> for XmlElementRef
impl From<BranchPtr> for XmlElementRef
source§impl From<BranchPtr> for XmlFragmentRef
impl From<BranchPtr> for XmlFragmentRef
source§impl From<BranchPtr> for XmlHookRef
impl From<BranchPtr> for XmlHookRef
source§impl From<BranchPtr> for XmlTextRef
impl From<BranchPtr> for XmlTextRef
source§impl PartialEq for BranchPtr
impl PartialEq for BranchPtr
impl Copy for BranchPtr
impl Eq for BranchPtr
Auto Trait Implementations§
impl Freeze for BranchPtr
impl !RefUnwindSafe for BranchPtr
impl !Send for BranchPtr
impl !Sync for BranchPtr
impl Unpin for BranchPtr
impl !UnwindSafe for BranchPtr
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