pub struct DrawingRef<'a> { /* private fields */ }Expand description
An immutable drawing embedded in a run.
Implementations§
Source§impl DrawingRef<'_>
impl DrawingRef<'_>
Sourcepub fn kind(&self) -> DrawingKind
pub fn kind(&self) -> DrawingKind
Semantic content kind.
Sourcepub fn relationship_id(&self) -> Option<&str>
pub fn relationship_id(&self) -> Option<&str>
The relationship ID for the drawing’s embedded or linked image, when present.
Sourcepub fn relationship_kind(&self) -> Option<DrawingRelationshipKind>
pub fn relationship_kind(&self) -> Option<DrawingRelationshipKind>
Whether the image relationship is embedded in the package or linked.
Sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The drawing description, commonly used as image alternative text.
Trait Implementations§
Source§impl<'a> Clone for DrawingRef<'a>
impl<'a> Clone for DrawingRef<'a>
impl<'a> Copy for DrawingRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for DrawingRef<'a>
impl<'a> RefUnwindSafe for DrawingRef<'a>
impl<'a> Send for DrawingRef<'a>
impl<'a> Sync for DrawingRef<'a>
impl<'a> Unpin for DrawingRef<'a>
impl<'a> UnsafeUnpin for DrawingRef<'a>
impl<'a> UnwindSafe for DrawingRef<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.