#[non_exhaustive]#[repr(u8)]pub enum BookmarkType {
Point = 0,
SpanStart = 1,
SpanEnd = 2,
}Expand description
Type of bookmark in an HWPX document.
Bookmarks can mark a single point or span a range of content
(start/end pair using fieldBegin/fieldEnd).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Point = 0
A point bookmark at a single location (direct serde in <hp:ctrl>).
SpanStart = 1
Start of a span bookmark (fieldBegin type="BOOKMARK").
SpanEnd = 2
End of a span bookmark (fieldEnd beginIDRef).
Trait Implementations§
Source§impl Clone for BookmarkType
impl Clone for BookmarkType
Source§fn clone(&self) -> BookmarkType
fn clone(&self) -> BookmarkType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BookmarkType
impl Debug for BookmarkType
Source§impl Default for BookmarkType
impl Default for BookmarkType
Source§fn default() -> BookmarkType
fn default() -> BookmarkType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BookmarkType
impl<'de> Deserialize<'de> for BookmarkType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for BookmarkType
impl Display for BookmarkType
Source§impl FromStr for BookmarkType
impl FromStr for BookmarkType
Source§impl Hash for BookmarkType
impl Hash for BookmarkType
Source§impl JsonSchema for BookmarkType
impl JsonSchema for BookmarkType
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for BookmarkType
impl PartialEq for BookmarkType
Source§impl Serialize for BookmarkType
impl Serialize for BookmarkType
Source§impl TryFrom<u8> for BookmarkType
impl TryFrom<u8> for BookmarkType
impl Copy for BookmarkType
impl Eq for BookmarkType
impl StructuralPartialEq for BookmarkType
Auto Trait Implementations§
impl Freeze for BookmarkType
impl RefUnwindSafe for BookmarkType
impl Send for BookmarkType
impl Sync for BookmarkType
impl Unpin for BookmarkType
impl UnwindSafe for BookmarkType
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.