pub struct DocumentBoundary { /* private fields */ }Expand description
A text boundary that uses the entire document as logical boundary.
Implementations§
Source§impl DocumentBoundary
impl DocumentBoundary
Sourcepub fn new(text: impl Into<String>) -> DocumentBoundary
pub fn new(text: impl Into<String>) -> DocumentBoundary
Creates a DocumentBoundary with the text.
Trait Implementations§
Source§impl Clone for DocumentBoundary
impl Clone for DocumentBoundary
Source§impl Debug for DocumentBoundary
impl Debug for DocumentBoundary
Source§impl TextBoundary for DocumentBoundary
impl TextBoundary for DocumentBoundary
Source§fn get_leading_text_boundary_at(
&self,
_app: &mut App,
position: i32,
) -> Option<i32>
fn get_leading_text_boundary_at( &self, _app: &mut App, position: i32, ) -> Option<i32>
Returns the offset of the closest text boundary before or at the given
position, or None if no boundaries can be found. Read moreAuto Trait Implementations§
impl Freeze for DocumentBoundary
impl RefUnwindSafe for DocumentBoundary
impl Send for DocumentBoundary
impl Sync for DocumentBoundary
impl Unpin for DocumentBoundary
impl UnsafeUnpin for DocumentBoundary
impl UnwindSafe for DocumentBoundary
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