Skip to main content

StandardOwner

Enum StandardOwner 

Source
pub enum StandardOwner {
    Layout,
    List,
    PrintField,
    Table,
    Xml100,
    Html32,
    Html401,
    Oeb10,
    Rtf105,
    Css100,
    Css200,
}
Expand description

The standard attribute owners of ISO 32000-1 Table 331: the four owners the standard defines attributes for, and the seven document formats whose own attributes an attribute object may carry.

Covers ISO 32000-1 §14.8.5.2.

Variants§

§

Layout

Layout: layout attributes (§14.8.5.4).

§

List

List: the list attribute (§14.8.5.5).

§

PrintField

PrintField: print-field attributes (§14.8.5.6).

§

Table

Table: table attributes (§14.8.5.7).

§

Xml100

XML-1.00: attributes of XML 1.00.

§

Html32

HTML-3.2: attributes of HTML 3.2.

§

Html401

HTML-4.01: attributes of HTML 4.01.

§

Oeb10

OEB-1.0: attributes of the Open eBook 1.0 format.

§

Rtf105

RTF-1.05: attributes of RTF 1.05.

§

Css100

CSS-1.00: attributes of CSS 1.00.

§

Css200

CSS-2.00: attributes of CSS 2.00.

Implementations§

Source§

impl StandardOwner

Source

pub const ALL: [StandardOwner; 11]

Every standard owner, in the order of Table 331.

Source

pub fn from_name(name: &str) -> Option<StandardOwner>

The standard owner an /O name stands for, None for a producer’s own owner (or UserProperties, §14.7.5.4, which is not one of them). Names are case-sensitive.

Source

pub fn name(self) -> &'static str

The name as the standard spells it.

Trait Implementations§

Source§

impl Clone for StandardOwner

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for StandardOwner

Source§

impl Debug for StandardOwner

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for StandardOwner

Source§

impl Hash for StandardOwner

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for StandardOwner

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for StandardOwner

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.