Struct yrs::types::xml::XmlHookRef
source · pub struct XmlHookRef(/* private fields */);
Expand description
(Obsolete) an Yjs-compatible XML node used for nesting Map elements.
Trait Implementations§
source§impl AsRef<Branch> for XmlHookRef
impl AsRef<Branch> for XmlHookRef
source§impl Clone for XmlHookRef
impl Clone for XmlHookRef
source§fn clone(&self) -> XmlHookRef
fn clone(&self) -> XmlHookRef
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 XmlHookRef
impl Debug for XmlHookRef
source§impl From<BranchPtr> for XmlHookRef
impl From<BranchPtr> for XmlHookRef
source§impl Into<MapRef> for XmlHookRef
impl Into<MapRef> for XmlHookRef
source§impl Map for XmlHookRef
impl Map for XmlHookRef
source§fn len<T: ReadTxn>(&self, _txn: &T) -> u32
fn len<T: ReadTxn>(&self, _txn: &T) -> u32
Returns a number of entries stored within current map.
source§fn keys<'a, T: ReadTxn + 'a>(&'a self, txn: &'a T) -> Keys<'a, &'a T, T> ⓘ
fn keys<'a, T: ReadTxn + 'a>(&'a self, txn: &'a T) -> Keys<'a, &'a T, T> ⓘ
Returns an iterator that enables to traverse over all keys of entries stored within
current map. These keys are not ordered.
source§fn values<'a, T: ReadTxn + 'a>(&'a self, txn: &'a T) -> Values<'a, &'a T, T> ⓘ
fn values<'a, T: ReadTxn + 'a>(&'a self, txn: &'a T) -> Values<'a, &'a T, T> ⓘ
Returns an iterator that enables to traverse over all values stored within current map.
source§fn iter<'a, T: ReadTxn + 'a>(&'a self, txn: &'a T) -> MapIter<'a, &'a T, T> ⓘ
fn iter<'a, T: ReadTxn + 'a>(&'a self, txn: &'a T) -> MapIter<'a, &'a T, T> ⓘ
Returns an iterator that enables to traverse over all entries - tuple of key-value pairs -
stored within current map.
source§fn insert<K, V>(
&self,
txn: &mut TransactionMut<'_>,
key: K,
value: V
) -> V::Return
fn insert<K, V>( &self, txn: &mut TransactionMut<'_>, key: K, value: V ) -> V::Return
Inserts a new
value
under given key
into current map. Returns an integrated value.source§fn remove(&self, txn: &mut TransactionMut<'_>, key: &str) -> Option<Value>
fn remove(&self, txn: &mut TransactionMut<'_>, key: &str) -> Option<Value>
Removes a stored within current map under a given
key
. Returns that value or None
if
no entry with a given key
was present in current map. Read moresource§fn get<T: ReadTxn>(&self, txn: &T, key: &str) -> Option<Value>
fn get<T: ReadTxn>(&self, txn: &T, key: &str) -> Option<Value>
Returns a value stored under a given
key
within current map, or None
if no entry
with such key
existed.source§fn contains_key<T: ReadTxn>(&self, _txn: &T, key: &str) -> bool
fn contains_key<T: ReadTxn>(&self, _txn: &T, key: &str) -> bool
Checks if an entry with given
key
can be found within current map.source§fn clear(&self, txn: &mut TransactionMut<'_>)
fn clear(&self, txn: &mut TransactionMut<'_>)
Clears the contents of current map, effectively removing all of its entries.
source§impl PartialEq for XmlHookRef
impl PartialEq for XmlHookRef
source§impl ToJson for XmlHookRef
impl ToJson for XmlHookRef
impl Eq for XmlHookRef
Auto Trait Implementations§
impl Freeze for XmlHookRef
impl !RefUnwindSafe for XmlHookRef
impl !Send for XmlHookRef
impl !Sync for XmlHookRef
impl Unpin for XmlHookRef
impl !UnwindSafe for XmlHookRef
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