Struct XmlElementPrelim
pub struct XmlElementPrelim {
pub tag: Arc<str>,
pub attributes: HashMap<Arc<str>, String>,
pub children: Vec<XmlIn>,
}Expand description
A preliminary type that will be materialized into an XmlElementRef once it will be integrated into Yrs document.
Fields§
§tag: Arc<str>§attributes: HashMap<Arc<str>, String>§children: Vec<XmlIn>Implementations§
§impl XmlElementPrelim
impl XmlElementPrelim
pub fn new<S, I>(tag: S, iter: I) -> XmlElementPrelim
pub fn empty<S>(tag: S) -> XmlElementPrelim
Trait Implementations§
§impl Clone for XmlElementPrelim
impl Clone for XmlElementPrelim
§fn clone(&self) -> XmlElementPrelim
fn clone(&self) -> XmlElementPrelim
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 XmlElementPrelim
impl Debug for XmlElementPrelim
§impl From<XmlElementPrelim> for In
impl From<XmlElementPrelim> for In
§fn from(value: XmlElementPrelim) -> In
fn from(value: XmlElementPrelim) -> In
Converts to this type from the input type.
§impl From<XmlElementPrelim> for XmlIn
impl From<XmlElementPrelim> for XmlIn
§fn from(value: XmlElementPrelim) -> XmlIn
fn from(value: XmlElementPrelim) -> XmlIn
Converts to this type from the input type.
§impl Into<EmbedPrelim<XmlElementPrelim>> for XmlElementPrelim
impl Into<EmbedPrelim<XmlElementPrelim>> for XmlElementPrelim
§fn into(self) -> EmbedPrelim<XmlElementPrelim>
fn into(self) -> EmbedPrelim<XmlElementPrelim>
Converts this type into the (usually inferred) input type.
§impl PartialEq for XmlElementPrelim
impl PartialEq for XmlElementPrelim
§impl Prelim for XmlElementPrelim
impl Prelim for XmlElementPrelim
§type Return = XmlElementRef
type Return = XmlElementRef
§fn into_content(
self,
_txn: &mut TransactionMut<'_>,
) -> (ItemContent, Option<XmlElementPrelim>)
fn into_content( self, _txn: &mut TransactionMut<'_>, ) -> (ItemContent, Option<XmlElementPrelim>)
This method is used to create initial content required in order to create a block item.
A supplied
ptr can be used to identify block that is about to be created to store
the returned content. Read more§fn integrate(self, txn: &mut TransactionMut<'_>, inner_ref: BranchPtr)
fn integrate(self, txn: &mut TransactionMut<'_>, inner_ref: BranchPtr)
Method called once an original item filled with content from Self::into_content has been
added to block store. This method is used by complex types such as maps or arrays to append
the original contents of prelim struct into YMap, YArray etc.
impl StructuralPartialEq for XmlElementPrelim
impl XmlPrelim for XmlElementPrelim
Auto Trait Implementations§
impl Freeze for XmlElementPrelim
impl !RefUnwindSafe for XmlElementPrelim
impl Send for XmlElementPrelim
impl Sync for XmlElementPrelim
impl Unpin for XmlElementPrelim
impl !UnwindSafe for XmlElementPrelim
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<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