Enum somedoc::model::inline::InlineContent [−][src]
The set of supported inline content types.
Variants
HyperLink(HyperLink)
A link which may be to an internal document location or an external document.
Image(Image)
An image, referenced via a HyperLink
.
Text(Text)
Plain text.
Math(Math)
Inline formatted math formula.
Character(Character)
A single character.
A break within a set of inline content.
Span(Span)
A span contains other inline content and may also be styled.
Trait Implementations
impl Clone for InlineContent
[src]
fn clone(&self) -> InlineContent
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for InlineContent
[src]
impl<'de> Deserialize<'de> for InlineContent
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl From<InlineContent> for Span
[src]
fn from(value: InlineContent) -> Self
[src]
impl From<InlineContent> for Heading
[src]
fn from(value: InlineContent) -> Self
[src]
impl From<InlineContent> for Item
[src]
fn from(value: InlineContent) -> Self
[src]
impl From<InlineContent> for DefinitionPart
[src]
fn from(value: InlineContent) -> Self
[src]
impl From<InlineContent> for Paragraph
[src]
fn from(value: InlineContent) -> Self
[src]
impl From<InlineContent> for Cell
[src]
fn from(value: InlineContent) -> Self
[src]
impl HasInnerContent<InlineContent> for Span
[src]
fn inner(&self) -> &Vec<InlineContent>
[src]
fn into_inner(self) -> Vec<InlineContent>
[src]
fn inner_mut(&mut self) -> &mut Vec<InlineContent>
[src]
fn add_content(&mut self, content: InlineContent) -> Result<()>
[src]
fn has_inner(&self) -> bool
[src]
impl HasInnerContent<InlineContent> for Heading
[src]
fn inner(&self) -> &Vec<InlineContent>
[src]
fn into_inner(self) -> Vec<InlineContent>
[src]
fn inner_mut(&mut self) -> &mut Vec<InlineContent>
[src]
fn add_content(&mut self, content: InlineContent) -> Result<()>
[src]
fn has_inner(&self) -> bool
[src]
impl HasInnerContent<InlineContent> for Item
[src]
fn inner(&self) -> &Vec<InlineContent>
[src]
fn into_inner(self) -> Vec<InlineContent>
[src]
fn inner_mut(&mut self) -> &mut Vec<InlineContent>
[src]
fn add_content(&mut self, content: InlineContent) -> Result<()>
[src]
fn has_inner(&self) -> bool
[src]
impl HasInnerContent<InlineContent> for DefinitionPart
[src]
fn inner(&self) -> &Vec<InlineContent>
[src]
fn into_inner(self) -> Vec<InlineContent>
[src]
fn inner_mut(&mut self) -> &mut Vec<InlineContent>
[src]
fn add_content(&mut self, content: InlineContent) -> Result<()>
[src]
fn has_inner(&self) -> bool
[src]
impl HasInnerContent<InlineContent> for Paragraph
[src]
fn inner(&self) -> &Vec<InlineContent>
[src]
fn into_inner(self) -> Vec<InlineContent>
[src]
fn inner_mut(&mut self) -> &mut Vec<InlineContent>
[src]
fn add_content(&mut self, content: InlineContent) -> Result<()>
[src]
fn has_inner(&self) -> bool
[src]
impl HasInnerContent<InlineContent> for Cell
[src]
fn inner(&self) -> &Vec<InlineContent>
[src]
fn into_inner(self) -> Vec<InlineContent>
[src]
fn inner_mut(&mut self) -> &mut Vec<InlineContent>
[src]
fn add_content(&mut self, content: InlineContent) -> Result<()>
[src]
fn has_inner(&self) -> bool
[src]
impl Into<InlineContent> for Character
[src]
fn into(self) -> InlineContent
[src]
impl Into<InlineContent> for Image
[src]
fn into(self) -> InlineContent
[src]
impl Into<InlineContent> for HyperLink
[src]
fn into(self) -> InlineContent
[src]
impl Into<InlineContent> for Text
[src]
fn into(self) -> InlineContent
[src]
impl Into<InlineContent> for Span
[src]
fn into(self) -> InlineContent
[src]
impl Serialize for InlineContent
[src]
Auto Trait Implementations
impl RefUnwindSafe for InlineContent
[src]
impl Send for InlineContent
[src]
impl Sync for InlineContent
[src]
impl Unpin for InlineContent
[src]
impl UnwindSafe for InlineContent
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,