Struct yrs::types::xml::XmlTextPrelim
source · pub struct XmlTextPrelim<T: Borrow<str>>(/* private fields */);
Expand description
A preliminary type that will be materialized into an XmlTextRef once it will be integrated into Yrs document.
Implementations§
Trait Implementations§
source§impl Default for XmlTextPrelim<String>
impl Default for XmlTextPrelim<String>
source§impl<T: Borrow<str>> Into<EmbedPrelim<XmlTextPrelim<T>>> for XmlTextPrelim<T>
impl<T: Borrow<str>> Into<EmbedPrelim<XmlTextPrelim<T>>> for XmlTextPrelim<T>
source§fn into(self) -> EmbedPrelim<XmlTextPrelim<T>>
fn into(self) -> EmbedPrelim<XmlTextPrelim<T>>
Converts this type into the (usually inferred) input type.
source§impl<T: Borrow<str>> Prelim for XmlTextPrelim<T>
impl<T: Borrow<str>> Prelim for XmlTextPrelim<T>
§type Return = XmlTextRef
type Return = XmlTextRef
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<T: Borrow<str>> XmlPrelim for XmlTextPrelim<T>
Auto Trait Implementations§
impl<T> Freeze for XmlTextPrelim<T>where
T: Freeze,
impl<T> RefUnwindSafe for XmlTextPrelim<T>where
T: RefUnwindSafe,
impl<T> Send for XmlTextPrelim<T>where
T: Send,
impl<T> Sync for XmlTextPrelim<T>where
T: Sync,
impl<T> Unpin for XmlTextPrelim<T>where
T: Unpin,
impl<T> UnwindSafe for XmlTextPrelim<T>where
T: 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