Enum components::path::Error [−][src]
pub enum Error {
UnexpectedEndOfStream,
UnexpectedData(usize),
InvalidValue,
InvalidChar(Vec<u8, Global>, usize),
InvalidString(Vec<String, Global>, usize),
InvalidNumber(usize),
InvalidViewbox,
}List of all errors.
Variants
An input data ended earlier than expected.
Should only appear on invalid input data. Errors in a valid XML should be handled by errors below.
UnexpectedData(usize)An input text contains unknown data.
A provided string doesn’t have a valid data.
For example, if we try to parse a color form zzz
string - we will get this error.
But if we try to parse a number list like 1.2 zzz,
then we will get InvalidNumber, because at least some data is valid.
An invalid/unexpected character.
The first byte is an actual one, others - expected.
We are using a single value to reduce the struct size.
An unexpected character instead of an XML space.
The first string is an actual one, others - expected.
We are using a single value to reduce the struct size.
InvalidNumber(usize)An invalid number.
A viewBox with a negative or zero size.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Error
impl RefUnwindSafe for Errorimpl UnwindSafe for Error
impl UnwindSafe for ErrorBlanket Implementations
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>, pub fn into_color(self) -> To
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,