pub enum ParseAttributeValueError {
UnexpectedQuoted {
attr_name: &'static str,
},
UnexpectedUnquoted {
attr_name: &'static str,
},
DecimalInteger {
attr_name: &'static str,
error: ParseNumberError,
},
DecimalFloatingPoint {
attr_name: &'static str,
error: ParseFloatError,
},
DecimalResolution {
attr_name: &'static str,
error: DecimalResolutionParseError,
},
Utf8 {
attr_name: &'static str,
error: Utf8Error,
},
}Expand description
An error in trying to convert an attribute value into a different data type as defined for the attribute in the HLS specification.
Variants§
UnexpectedQuoted
The value is wrapped in quotes when it should not be.
UnexpectedUnquoted
The value is not wrapped in quotes when it should be.
DecimalInteger
An issue found trying to convert into a decimal integer.
Fields
§
error: ParseNumberErrorThe underlying error.
DecimalFloatingPoint
An issue found trying to convert into a decimal floating point.
Fields
§
error: ParseFloatErrorThe underlying error.
DecimalResolution
An issue found trying to convert into a decimal resolution.
Fields
§
error: DecimalResolutionParseErrorThe underlying error.
Utf8
An issue found trying to convert into a UTF-8 string.
Trait Implementations§
Source§impl Clone for ParseAttributeValueError
impl Clone for ParseAttributeValueError
Source§fn clone(&self) -> ParseAttributeValueError
fn clone(&self) -> ParseAttributeValueError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParseAttributeValueError
impl Debug for ParseAttributeValueError
Source§impl Display for ParseAttributeValueError
impl Display for ParseAttributeValueError
Source§impl Error for ParseAttributeValueError
impl Error for ParseAttributeValueError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ParseAttributeValueError> for ValidationError
impl From<ParseAttributeValueError> for ValidationError
Source§fn from(value: ParseAttributeValueError) -> Self
fn from(value: ParseAttributeValueError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ParseAttributeValueError
impl PartialEq for ParseAttributeValueError
impl Copy for ParseAttributeValueError
impl StructuralPartialEq for ParseAttributeValueError
Auto Trait Implementations§
impl Freeze for ParseAttributeValueError
impl RefUnwindSafe for ParseAttributeValueError
impl Send for ParseAttributeValueError
impl Sync for ParseAttributeValueError
impl Unpin for ParseAttributeValueError
impl UnsafeUnpin for ParseAttributeValueError
impl UnwindSafe for ParseAttributeValueError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more