pub struct BookmarkRef { /* private fields */ }Expand description
Immutable summary of one correlated bookmark or one reported marker issue.
Implementations§
Source§impl BookmarkRef
impl BookmarkRef
pub fn id(&self) -> Option<i32>
pub fn name(&self) -> Option<&str>
Sourcepub fn range(&self) -> Option<RunRange>
pub fn range(&self) -> Option<RunRange>
Return the accepted-view half-open range reported by Document::bookmarks.
Its body index is the paragraph ordinal counted recursively through
tables and block content controls, which field numbering reads.
Self::direct_range reports the direct body child index instead.
Sourcepub fn direct_range(&self) -> Option<RunRange>
pub fn direct_range(&self) -> Option<RunRange>
Return the same range with the direct body child index that
RunPosition, Document::add_bookmark and
Document::find_content_index use.
It is None when either marker sits in a table cell or a block content
control, which have no direct body index. Run indexes are the same
accepted-view boundaries as Self::range, which are the
RunPosition run indexes that Document::add_bookmark and
Document::add_comment take.
pub fn text(&self) -> &str
pub fn issue(&self) -> Option<&str>
Trait Implementations§
Source§impl Clone for BookmarkRef
impl Clone for BookmarkRef
Source§impl Debug for BookmarkRef
impl Debug for BookmarkRef
impl Eq for BookmarkRef
Source§impl PartialEq for BookmarkRef
impl PartialEq for BookmarkRef
impl StructuralPartialEq for BookmarkRef
Auto Trait Implementations§
impl Freeze for BookmarkRef
impl RefUnwindSafe for BookmarkRef
impl Send for BookmarkRef
impl Sync for BookmarkRef
impl Unpin for BookmarkRef
impl UnsafeUnpin for BookmarkRef
impl UnwindSafe for BookmarkRef
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
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
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
T, using the provided data to resolve any offsets.