[−][src]Struct somedoc::model::inline::text::Span
Implementations
impl Span
[src]
pub fn new(inner: &str) -> Self
[src]
pub fn new_with_style(inner: &str, style: TextStyle) -> Self
[src]
pub fn new_inner(inner: InlineContent) -> Self
[src]
pub fn new_inner_with_style(inner: InlineContent, style: TextStyle) -> Self
[src]
Trait Implementations
impl Clone for Span
[src]
impl ComplexContent<InlineContent> for Span
[src]
fn 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 Debug for Span
[src]
impl Default for Span
[src]
impl<'_> From<&'_ str> for Span
[src]
impl From<InlineContent> for Span
[src]
fn from(value: InlineContent) -> Self
[src]
impl From<String> for Span
[src]
impl From<Vec<InlineContent>> for Span
[src]
fn from(value: Vec<InlineContent>) -> Self
[src]
impl HasInlineContent for Span
[src]
fn from(inner: InlineContent) -> Self
[src]
fn from_all(inner: Vec<InlineContent>) -> Self
[src]
fn anchor(inner: Anchor) -> Self
[src]
fn link(inner: HyperLink) -> Self
[src]
fn image(inner: Image) -> Self
[src]
fn text(inner: Text) -> Self
[src]
fn text_str(inner: &str) -> Self
[src]
fn character(inner: Character) -> Self
[src]
fn line_break() -> Self
[src]
fn span(span: Span) -> Self
[src]
fn add_anchor(&mut self, inner: Anchor)
[src]
fn add_link(&mut self, inner: HyperLink)
[src]
fn add_image(&mut self, inner: Image)
[src]
fn add_text(&mut self, inner: Text)
[src]
fn add_text_str(&mut self, inner: &str)
[src]
fn add_character(&mut self, inner: Character)
[src]
fn add_line_break(&mut self)
[src]
fn add_span(&mut self, inner: Span)
[src]
fn plain(inner: InlineContent) -> Self
[src]
fn plain_str(inner: &str) -> Self
[src]
fn italic(inner: InlineContent) -> Self
[src]
fn italic_str(inner: &str) -> Self
[src]
fn slanted(inner: InlineContent) -> Self
[src]
fn slanted_str(inner: &str) -> Self
[src]
fn quote(inner: InlineContent) -> Self
[src]
fn quote_str(inner: &str) -> Self
[src]
fn light(inner: InlineContent) -> Self
[src]
fn light_str(inner: &str) -> Self
[src]
fn bold(inner: InlineContent) -> Self
[src]
fn bold_str(inner: &str) -> Self
[src]
fn mono(inner: InlineContent) -> Self
[src]
fn mono_str(inner: &str) -> Self
[src]
fn code(inner: InlineContent) -> Self
[src]
fn code_str(inner: &str) -> Self
[src]
fn strikethrough(inner: InlineContent) -> Self
[src]
fn strikethrough_str(inner: &str) -> Self
[src]
fn underline(inner: InlineContent) -> Self
[src]
fn underline_str(inner: &str) -> Self
[src]
fn small_caps(inner: InlineContent) -> Self
[src]
fn small_caps_str(inner: &str) -> Self
[src]
fn superscript(inner: InlineContent) -> Self
[src]
fn superscript_str(inner: &str) -> Self
[src]
fn subscript(inner: InlineContent) -> Self
[src]
fn subscript_str(inner: &str) -> Self
[src]
impl Into<InlineContent> for Span
[src]
fn into(self) -> InlineContent
[src]
impl Styled<TextStyle> for Span
[src]
Auto Trait Implementations
impl RefUnwindSafe for Span
impl Send for Span
impl Sync for Span
impl Unpin for Span
impl UnwindSafe for Span
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> 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>,