pub enum EmbedPrelim<T> {
Primitive(Any),
Shared(T),
}Expand description
Prelim container for types passed over to Text::insert_embed and Text::insert_embed_with_attributes methods.
Variants§
Trait Implementations§
Source§impl<T> Debug for EmbedPrelim<T>where
T: Debug,
impl<T> Debug for EmbedPrelim<T>where
T: Debug,
Source§impl<T> From<T> for EmbedPrelim<T>
impl<T> From<T> for EmbedPrelim<T>
Source§fn from(value: T) -> EmbedPrelim<T>
fn from(value: T) -> EmbedPrelim<T>
Converts to this type from the input type.
Source§impl<T, V> Into<EmbedPrelim<ArrayPrelim<T, V>>> for ArrayPrelim<T, V>where
T: IntoIterator<Item = V>,
impl<T, V> Into<EmbedPrelim<ArrayPrelim<T, V>>> for ArrayPrelim<T, V>where
T: IntoIterator<Item = V>,
Source§fn into(self) -> EmbedPrelim<ArrayPrelim<T, V>>
fn into(self) -> EmbedPrelim<ArrayPrelim<T, V>>
Converts this type into the (usually inferred) input type.
Source§impl<T> Into<EmbedPrelim<MapPrelim<T>>> for MapPrelim<T>where
T: Prelim,
impl<T> Into<EmbedPrelim<MapPrelim<T>>> for MapPrelim<T>where
T: Prelim,
Source§fn into(self) -> EmbedPrelim<MapPrelim<T>>
fn into(self) -> EmbedPrelim<MapPrelim<T>>
Converts this type into the (usually inferred) input type.
Source§impl<T> Into<EmbedPrelim<TextPrelim<T>>> for TextPrelim<T>
impl<T> Into<EmbedPrelim<TextPrelim<T>>> for TextPrelim<T>
Source§fn into(self) -> EmbedPrelim<TextPrelim<T>>
fn into(self) -> EmbedPrelim<TextPrelim<T>>
Converts this type into the (usually inferred) input type.
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> Into<EmbedPrelim<XmlFragmentPrelim<I, T>>> for XmlFragmentPrelim<I, T>
impl<I, T> Into<EmbedPrelim<XmlFragmentPrelim<I, T>>> for XmlFragmentPrelim<I, T>
Source§fn into(self) -> EmbedPrelim<XmlFragmentPrelim<I, T>>
fn into(self) -> EmbedPrelim<XmlFragmentPrelim<I, T>>
Converts this type into the (usually inferred) input type.
Source§impl<T> Into<EmbedPrelim<XmlTextPrelim<T>>> for XmlTextPrelim<T>
impl<T> 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> Prelim for EmbedPrelim<T>where
T: Prelim,
impl<T> Prelim for EmbedPrelim<T>where
T: Prelim,
Source§fn into_content(
self,
txn: &mut TransactionMut<'_>,
) -> (ItemContent, Option<EmbedPrelim<T>>)
fn into_content( self, txn: &mut TransactionMut<'_>, ) -> (ItemContent, Option<EmbedPrelim<T>>)
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.
Auto Trait Implementations§
impl<T> Freeze for EmbedPrelim<T>where
T: Freeze,
impl<T> RefUnwindSafe for EmbedPrelim<T>where
T: RefUnwindSafe,
impl<T> Send for EmbedPrelim<T>where
T: Send,
impl<T> Sync for EmbedPrelim<T>where
T: Sync,
impl<T> Unpin for EmbedPrelim<T>where
T: Unpin,
impl<T> UnwindSafe for EmbedPrelim<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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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