pub struct FrameRef<'scene> { /* private fields */ }Expand description
Borrowed identity and display metadata for one live frame occurrence.
Implementations§
Source§impl<'scene> FrameRef<'scene>
impl<'scene> FrameRef<'scene>
Sourcepub const fn id(self) -> Option<&'scene str>
pub const fn id(self) -> Option<&'scene str>
Returns the source element ID when it is a non-empty string.
Excalidraw gives every element a unique ID, but a hand-edited or damaged scene can omit or repeat one; the renderer repairs such IDs when it renders, and the ordinal always identifies the occurrence.
Trait Implementations§
impl<'scene> Copy for FrameRef<'scene>
impl Eq for FrameRef<'_>
Source§impl PartialEq for FrameRef<'_>
Two references are equal when they name the same frame occurrence of the
same admitted scene. A clone of a SceneDocument is the same scene; a
second parse of the same bytes is not.
impl PartialEq for FrameRef<'_>
Two references are equal when they name the same frame occurrence of the
same admitted scene. A clone of a SceneDocument is the same scene; a
second parse of the same bytes is not.
Auto Trait Implementations§
impl<'scene> Freeze for FrameRef<'scene>
impl<'scene> RefUnwindSafe for FrameRef<'scene>
impl<'scene> Send for FrameRef<'scene>
impl<'scene> Sync for FrameRef<'scene>
impl<'scene> Unpin for FrameRef<'scene>
impl<'scene> UnsafeUnpin for FrameRef<'scene>
impl<'scene> UnwindSafe for FrameRef<'scene>
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
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.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.