pub struct WrappableParagraph { /* private fields */ }Expand description
A paragraph range with the inline facts needed by the wrap pass.
Implementations§
Source§impl WrappableParagraph
impl WrappableParagraph
pub fn line_range(&self) -> Range<usize>
pub fn content_range(&self) -> Range<usize>
pub fn owner_kind(&self) -> StructuralKind
pub fn first_prefix(&self) -> &str
pub fn cont_prefix(&self) -> &str
pub fn list_four_space_cont_prefix(&self) -> Option<&str>
pub fn atomics(&self) -> &[Range<usize>]
pub fn hard_breaks(&self) -> &[ParagraphHardBreak]
Trait Implementations§
Source§impl Clone for WrappableParagraph
impl Clone for WrappableParagraph
Source§fn clone(&self) -> WrappableParagraph
fn clone(&self) -> WrappableParagraph
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WrappableParagraph
impl RefUnwindSafe for WrappableParagraph
impl Send for WrappableParagraph
impl Sync for WrappableParagraph
impl Unpin for WrappableParagraph
impl UnsafeUnpin for WrappableParagraph
impl UnwindSafe for WrappableParagraph
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