Struct text_document::block::Block
source · [−]pub struct Block { /* private fields */ }
Implementations
sourceimpl Block
impl Block
pub fn uuid(&self) -> usize
pub fn iter(&self) -> BlockIterⓘNotable traits for BlockIterimpl Iterator for BlockIter type Item = Element;
sourcepub fn position(&self) -> usize
pub fn position(&self) -> usize
Position of the cursor at the start of the block in the context of the document.
sourcepub fn block_number(&self) -> usize
pub fn block_number(&self) -> usize
Number of this block in the whole document
sourcepub fn block_format(&self) -> BlockFormat
pub fn block_format(&self) -> BlockFormat
get this block formatting
pub fn list_all_children(&self) -> Vec<Element>
sourcepub fn text_format(&self) -> TextFormat
pub fn text_format(&self) -> TextFormat
Describes the block’s character format. The block’s character format is the char format of the first block.
sourcepub fn plain_text(&self) -> String
pub fn plain_text(&self) -> String
returns the plain text of this block
sourcepub fn text_length(&self) -> usize
pub fn text_length(&self) -> usize
Length of text in the block
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Block
impl !Send for Block
impl !Sync for Block
impl Unpin for Block
impl !UnwindSafe for Block
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more