pub struct TextGeometry {
pub carets: Vec<(usize, Point)>,
}Expand description
Caret positions in a text node, from annotations.
Fields§
§carets: Vec<(usize, Point)>Byte offset to caret top, sorted by offset.
Implementations§
Trait Implementations§
Source§impl Clone for TextGeometry
impl Clone for TextGeometry
Source§impl Debug for TextGeometry
impl Debug for TextGeometry
Source§impl Default for TextGeometry
impl Default for TextGeometry
Source§impl<'de> Deserialize<'de> for TextGeometry
impl<'de> Deserialize<'de> for TextGeometry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TextGeometry
impl PartialEq for TextGeometry
Source§impl Serialize for TextGeometry
impl Serialize for TextGeometry
impl StructuralPartialEq for TextGeometry
Auto Trait Implementations§
impl Forget for TextGeometry
impl Freeze for TextGeometry
impl Move for TextGeometry
impl RefUnwindSafe for TextGeometry
impl Send for TextGeometrywhere
RawVecInner: Send,
impl Sync for TextGeometrywhere
RawVecInner: Sync,
impl Unpin for TextGeometry
impl UnsafeUnpin for TextGeometry
impl UnwindSafe for TextGeometrywhere
RawVecInner: UnwindSafe,
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