pub struct ImageAnchor {
pub byte_offset: u32,
pub name: String,
pub width: i64,
pub height: i64,
pub quality: i64,
pub format: CharacterFormat,
}Expand description
An image embedded at a specific byte position inside a block. In
Phase 1 the byte position is an index into the block’s plain_text;
in Phase 2 it points at the U+FFFC sentinel character in the rope.
Images carry their own CharacterFormat because vertical alignment
and anchor metadata apply per inline run.
Fields§
§byte_offset: u32§name: String§width: i64§height: i64§quality: i64§format: CharacterFormatTrait Implementations§
Source§impl Clone for ImageAnchor
impl Clone for ImageAnchor
Source§fn clone(&self) -> ImageAnchor
fn clone(&self) -> ImageAnchor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ImageAnchor
impl Debug for ImageAnchor
Source§impl<'de> Deserialize<'de> for ImageAnchor
impl<'de> Deserialize<'de> for ImageAnchor
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 ImageAnchor
impl PartialEq for ImageAnchor
Source§fn eq(&self, other: &ImageAnchor) -> bool
fn eq(&self, other: &ImageAnchor) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ImageAnchor
impl Serialize for ImageAnchor
impl Eq for ImageAnchor
impl StructuralPartialEq for ImageAnchor
Auto Trait Implementations§
impl Freeze for ImageAnchor
impl RefUnwindSafe for ImageAnchor
impl Send for ImageAnchor
impl Sync for ImageAnchor
impl Unpin for ImageAnchor
impl UnsafeUnpin for ImageAnchor
impl UnwindSafe for ImageAnchor
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