pub struct Anchor {
pub screen_rect: LogicalRect,
pub display_id: DisplayId,
pub content_hash: Option<String>,
}Expand description
Where an annotation is pinned.
Every annotation carries one. In 0.1 only screen_rect and display_id are read.
content_hash is reserved and always null: scroll tracking populates it later so
annotations can be matched to content after it moves. It is serialized now, even as
null, so that filling it in is an additive change rather than a new field.
Fields§
§screen_rect: LogicalRectThe region in logical points, on display_id.
display_id: DisplayIdThe display the rect belongs to.
content_hash: Option<String>Reserved. Always None in 0.1.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Anchor
impl<'de> Deserialize<'de> for Anchor
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
impl StructuralPartialEq for Anchor
Auto Trait Implementations§
impl Freeze for Anchor
impl RefUnwindSafe for Anchor
impl Send for Anchor
impl Sync for Anchor
impl Unpin for Anchor
impl UnsafeUnpin for Anchor
impl UnwindSafe for Anchor
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