#[non_exhaustive]pub enum ObjectRelativeTo {
Paper,
Page,
Para,
Column,
Character,
Line,
Other(String),
}Expand description
Anchor target for object placement offsets.
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.
Paper
Anchor offsets to the paper.
Page
Anchor offsets to the page.
Para
Anchor offsets to the paragraph.
Column
Anchor offsets to the column.
Character
Anchor offsets to the character box.
Line
Anchor offsets to the line box.
Other(String)
Any anchor value not modeled explicitly.
Implementations§
Trait Implementations§
Source§impl Clone for ObjectRelativeTo
impl Clone for ObjectRelativeTo
Source§fn clone(&self) -> ObjectRelativeTo
fn clone(&self) -> ObjectRelativeTo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ObjectRelativeTo
impl Debug for ObjectRelativeTo
Source§impl<'de> Deserialize<'de> for ObjectRelativeTo
impl<'de> Deserialize<'de> for ObjectRelativeTo
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
impl Eq for ObjectRelativeTo
Source§impl JsonSchema for ObjectRelativeTo
impl JsonSchema for ObjectRelativeTo
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§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 ObjectRelativeTo
impl PartialEq for ObjectRelativeTo
Source§impl Serialize for ObjectRelativeTo
impl Serialize for ObjectRelativeTo
impl StructuralPartialEq for ObjectRelativeTo
Auto Trait Implementations§
impl Freeze for ObjectRelativeTo
impl RefUnwindSafe for ObjectRelativeTo
impl Send for ObjectRelativeTo
impl Sync for ObjectRelativeTo
impl Unpin for ObjectRelativeTo
impl UnsafeUnpin for ObjectRelativeTo
impl UnwindSafe for ObjectRelativeTo
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.