pub struct WrappedLayout { /* private fields */ }Implementations§
Source§impl WrappedLayout
impl WrappedLayout
pub fn text_len(&self) -> usize
pub fn kept_end(&self) -> usize
pub fn line_ranges(&self) -> &[Range<usize>]
pub fn lines(&self) -> &[ShapedLineLayout]
pub fn into_parts( self, ) -> (usize, usize, Vec<Range<usize>>, Vec<ShapedLineLayout>)
pub fn hit_test_x(&self, line_index: usize, x: f32) -> (usize, CaretAffinity)
Trait Implementations§
Source§impl Clone for WrappedLayout
impl Clone for WrappedLayout
Source§fn clone(&self) -> WrappedLayout
fn clone(&self) -> WrappedLayout
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WrappedLayout
impl Debug for WrappedLayout
Source§impl PartialEq for WrappedLayout
impl PartialEq for WrappedLayout
impl StructuralPartialEq for WrappedLayout
Auto Trait Implementations§
impl Freeze for WrappedLayout
impl !RefUnwindSafe for WrappedLayout
impl Send for WrappedLayout
impl Sync for WrappedLayout
impl Unpin for WrappedLayout
impl UnsafeUnpin for WrappedLayout
impl !UnwindSafe for WrappedLayout
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