Struct yrs::types::xml::XmlElementPrelim
source · pub struct XmlElementPrelim<I, T>(/* private fields */)
where
I: IntoIterator<Item = T>,
T: XmlPrelim;
Expand description
A preliminary type that will be materialized into an XmlElementRef once it will be integrated into Yrs document.
Implementations§
source§impl<I, T> XmlElementPrelim<I, T>where
I: IntoIterator<Item = T>,
T: XmlPrelim,
impl<I, T> XmlElementPrelim<I, T>where
I: IntoIterator<Item = T>,
T: XmlPrelim,
Trait Implementations§
source§impl<I, T> Clone for XmlElementPrelim<I, T>
impl<I, T> Clone for XmlElementPrelim<I, T>
source§fn clone(&self) -> XmlElementPrelim<I, T>
fn clone(&self) -> XmlElementPrelim<I, T>
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<I, T> Debug for XmlElementPrelim<I, T>
impl<I, T> Debug for XmlElementPrelim<I, T>
source§impl<I, T> Into<EmbedPrelim<XmlElementPrelim<I, T>>> for XmlElementPrelim<I, T>
impl<I, T> Into<EmbedPrelim<XmlElementPrelim<I, T>>> for XmlElementPrelim<I, T>
source§fn into(self) -> EmbedPrelim<XmlElementPrelim<I, T>>
fn into(self) -> EmbedPrelim<XmlElementPrelim<I, T>>
Converts this type into the (usually inferred) input type.
source§impl<I, T> Prelim for XmlElementPrelim<I, T>where
I: IntoIterator<Item = T>,
T: XmlPrelim,
impl<I, T> Prelim for XmlElementPrelim<I, T>where
I: IntoIterator<Item = T>,
T: XmlPrelim,
§type Return = XmlElementRef
type Return = XmlElementRef
source§fn into_content(
self,
_txn: &mut TransactionMut<'_>
) -> (ItemContent, Option<Self>)
fn into_content( self, _txn: &mut TransactionMut<'_> ) -> (ItemContent, Option<Self>)
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 moresource§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<I, T> XmlPrelim for XmlElementPrelim<I, T>where
I: IntoIterator<Item = T>,
T: XmlPrelim,
Auto Trait Implementations§
impl<I, T> Freeze for XmlElementPrelim<I, T>where
I: Freeze,
impl<I, T> RefUnwindSafe for XmlElementPrelim<I, T>where
I: RefUnwindSafe,
impl<I, T> Send for XmlElementPrelim<I, T>where
I: Send,
impl<I, T> Sync for XmlElementPrelim<I, T>where
I: Sync,
impl<I, T> Unpin for XmlElementPrelim<I, T>where
I: Unpin,
impl<I, T> UnwindSafe for XmlElementPrelim<I, T>where
I: UnwindSafe,
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