Struct XmlHookRef
pub struct XmlHookRef(/* private fields */);Expand description
(Obsolete) an Yjs-compatible XML node used for nesting Map elements.
Trait Implementations§
§impl AsRef<Branch> for XmlHookRef
impl AsRef<Branch> for XmlHookRef
§impl AsRef<MapRef> for XmlHookRef
impl AsRef<MapRef> for XmlHookRef
§impl Clone for XmlHookRef
impl Clone for XmlHookRef
§fn clone(&self) -> XmlHookRef
fn clone(&self) -> XmlHookRef
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 more§impl Debug for XmlHookRef
impl Debug for XmlHookRef
§impl From<BranchPtr> for XmlHookRef
impl From<BranchPtr> for XmlHookRef
§fn from(inner: BranchPtr) -> XmlHookRef
fn from(inner: BranchPtr) -> XmlHookRef
Converts to this type from the input type.
§impl Map for XmlHookRef
impl Map for XmlHookRef
§fn len<T>(&self, _txn: &T) -> u32where
T: ReadTxn,
fn len<T>(&self, _txn: &T) -> u32where
T: ReadTxn,
Returns a number of entries stored within current map.
§fn keys<'a, T>(&'a self, txn: &'a T) -> Keys<'a, &'a T, T> ⓘwhere
T: ReadTxn + 'a,
fn keys<'a, T>(&'a self, txn: &'a T) -> Keys<'a, &'a T, T> ⓘwhere
T: ReadTxn + 'a,
Returns an iterator that enables to traverse over all keys of entries stored within
current map. These keys are not ordered.
§fn values<'a, T>(&'a self, txn: &'a T) -> Values<'a, &'a T, T> ⓘwhere
T: ReadTxn + 'a,
fn values<'a, T>(&'a self, txn: &'a T) -> Values<'a, &'a T, T> ⓘwhere
T: ReadTxn + 'a,
Returns an iterator that enables to traverse over all values stored within current map.
§fn iter<'a, T>(&'a self, txn: &'a T) -> MapIter<'a, &'a T, T> ⓘwhere
T: ReadTxn + 'a,
fn iter<'a, T>(&'a self, txn: &'a T) -> MapIter<'a, &'a T, T> ⓘwhere
T: ReadTxn + 'a,
Returns an iterator that enables to traverse over all entries - tuple of key-value pairs -
stored within current map.
fn into_iter<'a, T>(self, txn: &'a T) -> MapIntoIter<'a, T> ⓘwhere
T: ReadTxn + 'a,
§fn insert<K, V>(
&self,
txn: &mut TransactionMut<'_>,
key: K,
value: V,
) -> <V as Prelim>::Return
fn insert<K, V>( &self, txn: &mut TransactionMut<'_>, key: K, value: V, ) -> <V as Prelim>::Return
Inserts a new
value under given key into current map. Returns an integrated value.§fn try_update<K, V>(
&self,
txn: &mut TransactionMut<'_>,
key: K,
value: V,
) -> bool
fn try_update<K, V>( &self, txn: &mut TransactionMut<'_>, key: K, value: V, ) -> bool
Tries to update a value stored under a given
key within current map, if it’s different
from the current one. Returns true if the value was updated, false otherwise. Read more§fn get_or_init<K, V>(&self, txn: &mut TransactionMut<'_>, key: K) -> V
fn get_or_init<K, V>(&self, txn: &mut TransactionMut<'_>, key: K) -> V
Returns an existing instance of a type stored under a given
key within current map.
If the given entry was not found, has been deleted or its type is different from expected,
that entry will be reset to a given type and its reference will be returned.§fn remove(&self, txn: &mut TransactionMut<'_>, key: &str) -> Option<Out>
fn remove(&self, txn: &mut TransactionMut<'_>, key: &str) -> Option<Out>
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 more§fn get<T>(&self, txn: &T, key: &str) -> Option<Out>where
T: ReadTxn,
fn get<T>(&self, txn: &T, key: &str) -> Option<Out>where
T: ReadTxn,
Returns a value stored under a given
key within current map, or None if no entry
with such key existed.§fn get_as<T, V>(&self, txn: &T, key: &str) -> Result<V, Error>where
T: ReadTxn,
V: DeserializeOwned,
fn get_as<T, V>(&self, txn: &T, key: &str) -> Result<V, Error>where
T: ReadTxn,
V: DeserializeOwned,
Returns a value stored under a given
key within current map, deserializing it into expected
type if found. If value was not found, the Any::Null will be substituted and deserialized
instead (i.e. into instance of Option type, if so desired). Read more§fn contains_key<T>(&self, _txn: &T, key: &str) -> boolwhere
T: ReadTxn,
fn contains_key<T>(&self, _txn: &T, key: &str) -> boolwhere
T: ReadTxn,
Checks if an entry with given
key can be found within current map.§fn clear(&self, txn: &mut TransactionMut<'_>)
fn clear(&self, txn: &mut TransactionMut<'_>)
Clears the contents of current map, effectively removing all of its entries.
§impl PartialEq for XmlHookRef
impl PartialEq for XmlHookRef
§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more