pub struct HighlightAnnotation {
pub base: AnnotationBase,
pub coords: Option<String>,
}Expand description
高亮注释。
核心数据不是一个矩形,而是一组 QuadPoints, 用来表示被高亮文字所在的四边形区域。 高亮注释。
Fields§
§base: AnnotationBase§coords: Option<String>坐标点数组 (QuadPoints),格式: “x1,y1,x2,y2,x3,y3,x4,y4,…”
Trait Implementations§
Source§impl Clone for HighlightAnnotation
impl Clone for HighlightAnnotation
Source§fn clone(&self) -> HighlightAnnotation
fn clone(&self) -> HighlightAnnotation
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 HighlightAnnotation
impl Debug for HighlightAnnotation
Source§impl<'de> Deserialize<'de> for HighlightAnnotation
impl<'de> Deserialize<'de> for HighlightAnnotation
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
Auto Trait Implementations§
impl Freeze for HighlightAnnotation
impl RefUnwindSafe for HighlightAnnotation
impl Send for HighlightAnnotation
impl Sync for HighlightAnnotation
impl Unpin for HighlightAnnotation
impl UnsafeUnpin for HighlightAnnotation
impl UnwindSafe for HighlightAnnotation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more