pub struct ContentLocation { /* private fields */ }Expand description
A checked path to one item inside a story owner.
Implementations§
Source§impl ContentLocation
impl ContentLocation
pub fn new( story: StoryId, item_kind: StoryItemKind, index_path: Vec<usize>, ) -> Self
Sourcepub fn end(story: StoryId) -> Self
pub fn end(story: StoryId) -> Self
Construct the insertion boundary after a story’s final direct content.
For the document body, this boundary remains before section properties.
pub fn story(&self) -> &StoryId
pub fn item_kind(&self) -> StoryItemKind
pub fn index_path(&self) -> &[usize]
Trait Implementations§
Source§impl Clone for ContentLocation
impl Clone for ContentLocation
Source§impl Debug for ContentLocation
impl Debug for ContentLocation
impl Eq for ContentLocation
Source§impl Hash for ContentLocation
impl Hash for ContentLocation
Source§impl PartialEq for ContentLocation
impl PartialEq for ContentLocation
impl StructuralPartialEq for ContentLocation
Auto Trait Implementations§
impl Freeze for ContentLocation
impl RefUnwindSafe for ContentLocation
impl Send for ContentLocation
impl Sync for ContentLocation
impl Unpin for ContentLocation
impl UnsafeUnpin for ContentLocation
impl UnwindSafe for ContentLocation
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.