Struct ComponentRange

pub struct ComponentRange { /* private fields */ }

An error type indicating that a component provided to a method was out of range, causing a failure.

Implementations

impl ComponentRange

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

Obtain the name of the component whose value was out of range.

const fn is_conditional(self) -> bool

Whether the value's permitted range is conditional, i.e. whether an input with this value could have succeeded if the values of other components were different.

Trait Implementations

impl Clone for ComponentRange

fn clone(&self) -> ComponentRange

impl Copy for ComponentRange

impl Debug for ComponentRange

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

impl Display for ComponentRange

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

impl Eq for ComponentRange

impl Error for ComponentRange

impl Hash for ComponentRange

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

impl PartialEq for ComponentRange

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

impl StructuralPartialEq for ComponentRange

impl TryFrom<Error> for ComponentRange

type Error = DifferentVariant;
fn try_from(err: Error) -> Result<Self, Self::Error>

Auto Trait Implementations

impl Freeze for ComponentRange

impl RefUnwindSafe for ComponentRange

impl Send for ComponentRange

impl Sync for ComponentRange

impl Unpin for ComponentRange

impl UnsafeUnpin for ComponentRange

impl UnwindSafe for ComponentRange

Blanket Implementations

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

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

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

impl<T> From<T> for ComponentRange

fn from(t: T) -> T

Returns the argument unchanged.

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

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T> ToString for ComponentRange where T: Display + ?Sized,

fn to_string(&self) -> String

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

fn into(self) -> U

Calls U::from(self).

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

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

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

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