pub struct StoryItemSnapshot { /* private fields */ }Expand description
One owned story-item projection materialized from a single story inventory.
Implementations§
Source§impl StoryItemSnapshot
impl StoryItemSnapshot
Sourcepub fn location(&self) -> &ContentLocation
pub fn location(&self) -> &ContentLocation
Return the checked story location captured by this snapshot.
Sourcepub fn direct_body_index(&self) -> Option<usize>
pub fn direct_body_index(&self) -> Option<usize>
Return the containing direct main-body child when this item has one.
Sourcepub fn is_direct_child(&self) -> bool
pub fn is_direct_child(&self) -> bool
Return whether this item is a direct child of its story owner.
An item nested in another item of the same owner, such as an inline
content control, a field, or a drawing inside a paragraph, returns
false. The direct items of one owner never overlap, so their text
reads each part of the owner once.
Trait Implementations§
Source§impl Clone for StoryItemSnapshot
impl Clone for StoryItemSnapshot
Source§impl Debug for StoryItemSnapshot
impl Debug for StoryItemSnapshot
impl Eq for StoryItemSnapshot
Source§impl PartialEq for StoryItemSnapshot
impl PartialEq for StoryItemSnapshot
impl StructuralPartialEq for StoryItemSnapshot
Auto Trait Implementations§
impl Freeze for StoryItemSnapshot
impl RefUnwindSafe for StoryItemSnapshot
impl Send for StoryItemSnapshot
impl Sync for StoryItemSnapshot
impl Unpin for StoryItemSnapshot
impl UnsafeUnpin for StoryItemSnapshot
impl UnwindSafe for StoryItemSnapshot
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,
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,
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.