[][src]Enum scpi::suffix::SuffixError

pub enum SuffixError {
    Syntax,
    ZeroExponent,
    Unknown,
    NotABaseUnit,
    IncompatibleQuantity,
    IncompatibleDimension,
}

Error which may be emitted by suffix parser and conversion.

Variants

Syntax

Suffix has invalid syntax (example S//M2 or S.2)

ZeroExponent

Suffix element has a exponent of zero

Unknown

Suffix is not recognized

NotABaseUnit

Conversion only works to certain basic units (eg Second, not Day, etc)

IncompatibleQuantity

Trying to convert between incompatible quantities (example: Farad -> Meter)

IncompatibleDimension

Trying to convert between different dimensions (example Meter^3 -> Meter

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.