Struct somedoc::model::block::Paragraph [−][src]
A paragraph is a bounded block of inline content, usually text.
Implementations
impl Paragraph
[src]
pub fn with_alignment(inner: &str, alignment: Alignment) -> Self
[src]
Create a new instance with the string as inline content and the provided alignment.
Trait Implementations
impl Clone for Paragraph
[src]
impl Debug for Paragraph
[src]
impl Default for Paragraph
[src]
impl<'de> Deserialize<'de> for Paragraph
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl From<&'_ str> for Paragraph
[src]
impl From<InlineContent> for Paragraph
[src]
fn from(value: InlineContent) -> Self
[src]
impl From<String> for Paragraph
[src]
impl From<Vec<InlineContent, Global>> for Paragraph
[src]
fn from(value: Vec<InlineContent>) -> Self
[src]
impl HasAlignment for Paragraph
[src]
fn alignment(&self) -> &Alignment
[src]
fn set_alignment(&mut self, alignment: Alignment) -> &mut Self
[src]
fn set_left_aligned(&mut self) -> &mut Self
[src]
fn set_right_aligned(&mut self) -> &mut Self
[src]
fn set_ragged_left(&mut self) -> &mut Self
[src]
fn set_ragged_right(&mut self) -> &mut Self
[src]
fn set_centered(&mut self) -> &mut Self
[src]
fn set_justified(&mut self) -> &mut Self
[src]
impl HasInlineContent for Paragraph
[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_link(&mut self, inner: HyperLink) -> &mut Self
[src]
fn add_image(&mut self, inner: Image) -> &mut Self
[src]
fn add_text(&mut self, inner: Text) -> &mut Self
[src]
fn add_text_str(&mut self, inner: &str) -> &mut Self
[src]
fn add_character(&mut self, inner: Character) -> &mut Self
[src]
fn add_space(&mut self) -> &mut Self
[src]
fn add_non_breaking_space(&mut self) -> &mut Self
[src]
fn add_line_break(&mut self) -> &mut Self
[src]
fn add_span(&mut self, inner: Span) -> &mut Self
[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 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]
fn unformatted_string(&self) -> String
[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 HasLabel for Paragraph
[src]
fn has_label(&self) -> bool
[src]
fn label(&self) -> &Option<Label>
[src]
fn set_label(&mut self, label: Label) -> &mut Self
[src]
fn unset_label(&mut self) -> &mut Self
[src]
impl Into<BlockContent> for Paragraph
[src]
fn into(self) -> BlockContent
[src]
impl Serialize for Paragraph
[src]
Auto Trait Implementations
impl RefUnwindSafe for Paragraph
[src]
impl Send for Paragraph
[src]
impl Sync for Paragraph
[src]
impl Unpin for Paragraph
[src]
impl UnwindSafe for Paragraph
[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>,