pub enum RecordConversionError {
NoRecords,
MultipleRecords,
}Expand description
A DESCRIPTION document cannot be represented as a single package record.
Variants§
NoRecords
The document contains no records (it is empty or contains only blank lines).
MultipleRecords
The document contains multiple records; conversion would discard metadata.
Trait Implementations§
Source§impl Clone for RecordConversionError
impl Clone for RecordConversionError
impl Copy for RecordConversionError
Source§impl Debug for RecordConversionError
impl Debug for RecordConversionError
Source§impl Display for RecordConversionError
impl Display for RecordConversionError
impl Eq for RecordConversionError
Source§impl Error for RecordConversionError
impl Error for RecordConversionError
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 PartialEq for RecordConversionError
impl PartialEq for RecordConversionError
impl StructuralPartialEq for RecordConversionError
Auto Trait Implementations§
impl Freeze for RecordConversionError
impl RefUnwindSafe for RecordConversionError
impl Send for RecordConversionError
impl Sync for RecordConversionError
impl Unpin for RecordConversionError
impl UnsafeUnpin for RecordConversionError
impl UnwindSafe for RecordConversionError
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