Skip to main content

SelectionError

Enum SelectionError 

Source
pub enum SelectionError {
    Processing(Error),
    WrongOccurrence,
    Missing(Component),
    Duplicate {
        property: Node,
    },
    Cardinality {
        property: Node,
    },
}
Expand description

Original selection refusal, before content/provider side effects.

Variants§

§

Processing(Error)

Original reader, capacity, work or source-processing cause.

§

WrongOccurrence

Wrong source, owner, placement, purpose or token occurrence.

§

Missing(Component)

The selected edition requires this original component.

§

Duplicate

A unique references Attribute cannot be chosen from duplicates.

Fields

§property: Node

Actual second attribute, without a fabricated input offset.

§

Cardinality

A registered required/target Attribute does not hold exactly one value.

Fields

§property: Node

Actual malformed attribute.

Trait Implementations§

Source§

impl Debug for SelectionError

Source§

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

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

impl From<Error> for SelectionError

Source§

fn from(cause: Error) -> Self

Converts to this type from the input type.

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> 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, 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.