Struct yrs::types::xml::XmlHookRef

source ·
pub struct XmlHookRef(_);
Expand description

(Obsolete) an Yjs-compatible XML node used for nesting Map elements.

Trait Implementations§

Converts this type into a mutable reference of the (usually inferred) input type.
Converts this type into a shared reference of the (usually inferred) input type.
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.
Converts this type into the (usually inferred) input type.
Returns a number of entries stored within current map.
Returns an iterator that enables to traverse over all keys of entries stored within current map. These keys are not ordered. Read more
Returns an iterator that enables to traverse over all values stored within current map.
Returns an iterator that enables to traverse over all entries - tuple of key-value pairs - stored within current map. Read more
Inserts a new value under given key into current map. Returns a value stored previously under the same key (if any existed). Read more
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
Returns a value stored under a given key within current map, or None if no entry with such key existed. Read more
Checks if an entry with given key can be found within current map.
Clears the contents of current map, effectively removing all of its entries.
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Converts all contents of a current type into a JSON-like representation.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Subscribe a callback f for all events emitted by this and nested collaborative types. Callback is accepting transaction which triggered that event and event itself, wrapped within an Event structure. Read more
Unobserves callback identified by subscription_id (which can be obtained by consuming Subscription using into cast). Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.