Struct XmlFragmentPrelim
pub struct XmlFragmentPrelim(/* private fields */);Expand description
A preliminary type that will be materialized into an XmlFragmentRef once it will be integrated into Yrs document.
Implementations§
§impl XmlFragmentPrelim
impl XmlFragmentPrelim
pub fn new<I, T>(iter: I) -> XmlFragmentPrelimwhere
I: IntoIterator<Item = XmlIn>,
Trait Implementations§
§impl Clone for XmlFragmentPrelim
impl Clone for XmlFragmentPrelim
§fn clone(&self) -> XmlFragmentPrelim
fn clone(&self) -> XmlFragmentPrelim
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 XmlFragmentPrelim
impl Debug for XmlFragmentPrelim
§impl Default for XmlFragmentPrelim
impl Default for XmlFragmentPrelim
§fn default() -> XmlFragmentPrelim
fn default() -> XmlFragmentPrelim
Returns the “default value” for a type. Read more
§impl From<XmlFragmentPrelim> for In
impl From<XmlFragmentPrelim> for In
§fn from(value: XmlFragmentPrelim) -> In
fn from(value: XmlFragmentPrelim) -> In
Converts to this type from the input type.
§impl From<XmlFragmentPrelim> for XmlIn
impl From<XmlFragmentPrelim> for XmlIn
§fn from(value: XmlFragmentPrelim) -> XmlIn
fn from(value: XmlFragmentPrelim) -> XmlIn
Converts to this type from the input type.
§impl Into<EmbedPrelim<XmlFragmentPrelim>> for XmlFragmentPrelim
impl Into<EmbedPrelim<XmlFragmentPrelim>> for XmlFragmentPrelim
§fn into(self) -> EmbedPrelim<XmlFragmentPrelim>
fn into(self) -> EmbedPrelim<XmlFragmentPrelim>
Converts this type into the (usually inferred) input type.
§impl PartialEq for XmlFragmentPrelim
impl PartialEq for XmlFragmentPrelim
§impl Prelim for XmlFragmentPrelim
impl Prelim for XmlFragmentPrelim
§type Return = XmlFragmentRef
type Return = XmlFragmentRef
§fn into_content(
self,
_txn: &mut TransactionMut<'_>,
) -> (ItemContent, Option<XmlFragmentPrelim>)
fn into_content( self, _txn: &mut TransactionMut<'_>, ) -> (ItemContent, Option<XmlFragmentPrelim>)
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 XmlFragmentPrelim
Auto Trait Implementations§
impl Freeze for XmlFragmentPrelim
impl !RefUnwindSafe for XmlFragmentPrelim
impl Send for XmlFragmentPrelim
impl Sync for XmlFragmentPrelim
impl Unpin for XmlFragmentPrelim
impl !UnwindSafe for XmlFragmentPrelim
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