Struct yrs::types::xml::XmlHookRef
source · pub struct XmlHookRef(_);Expand description
(Obsolete) an Yjs-compatible XML node used for nesting Map elements.
Trait Implementations§
source§impl AsMut<Branch> for XmlHookRef
impl AsMut<Branch> for XmlHookRef
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. Read more
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. Read more
source§fn insert<K, V>(
&self,
txn: &mut TransactionMut<'_>,
key: K,
value: V
) -> Option<Value>where
K: Into<Rc<str>>,
V: Prelim,
fn insert<K, V>(
&self,
txn: &mut TransactionMut<'_>,
key: K,
value: V
) -> Option<Value>where
K: Into<Rc<str>>,
V: Prelim,
Inserts a new
value under given key into current map. Returns a value stored previously
under the same key (if any existed). Read moresource§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. Read moresource§fn contains<T: ReadTxn>(&self, txn: &T, key: &str) -> bool
fn contains<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<XmlHookRef> for XmlHookRef
impl PartialEq<XmlHookRef> for XmlHookRef
source§fn eq(&self, other: &XmlHookRef) -> bool
fn eq(&self, other: &XmlHookRef) -> bool
source§impl ToJson for XmlHookRef
impl ToJson for XmlHookRef
impl Eq for XmlHookRef
impl StructuralEq for XmlHookRef
impl StructuralPartialEq for XmlHookRef
Auto Trait Implementations§
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> DeepObservable for Twhere
T: AsMut<Branch>,
impl<T> DeepObservable for Twhere
T: AsMut<Branch>,
source§fn observe_deep<F>(
&mut self,
f: F
) -> Subscription<Arc<dyn Fn(&TransactionMut<'_>, &Events) + 'static>>where
F: 'static + Fn(&TransactionMut<'_>, &Events),
fn observe_deep<F>(
&mut self,
f: F
) -> Subscription<Arc<dyn Fn(&TransactionMut<'_>, &Events) + 'static>>where
F: 'static + Fn(&TransactionMut<'_>, &Events),
source§fn unobserve_deep(&mut self, subscription_id: u32)
fn unobserve_deep(&mut self, subscription_id: u32)
Unobserves callback identified by
subscription_id (which can be obtained by consuming
Subscription using into cast). Read more