Enum XmlIn
pub enum XmlIn {
Text(XmlDeltaPrelim),
Element(XmlElementPrelim),
Fragment(XmlFragmentPrelim),
}Expand description
Trait shared by preliminary types that can be used as XML nodes: XmlElementPrelim, XmlFragmentPrelim and XmlTextPrelim.
Variants§
Trait Implementations§
§impl From<XmlDeltaPrelim> for XmlIn
impl From<XmlDeltaPrelim> for XmlIn
§fn from(value: XmlDeltaPrelim) -> XmlIn
fn from(value: XmlDeltaPrelim) -> XmlIn
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 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 From<XmlTextPrelim> for XmlIn
impl From<XmlTextPrelim> for XmlIn
§fn from(value: XmlTextPrelim) -> XmlIn
fn from(value: XmlTextPrelim) -> XmlIn
Converts to this type from the input type.
§impl Prelim for XmlIn
impl Prelim for XmlIn
§fn into_content(
self,
_txn: &mut TransactionMut<'_>,
) -> (ItemContent, Option<XmlIn>)
fn into_content( self, _txn: &mut TransactionMut<'_>, ) -> (ItemContent, Option<XmlIn>)
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 XmlIn
impl XmlPrelim for XmlIn
Auto Trait Implementations§
impl Freeze for XmlIn
impl !RefUnwindSafe for XmlIn
impl Send for XmlIn
impl Sync for XmlIn
impl Unpin for XmlIn
impl !UnwindSafe for XmlIn
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