pub enum DomainError {
EmptySequence,
InvalidSymbol {
symbol: char,
index: usize,
},
EmptyId {
kind: &'static str,
},
EmptyLocation,
InvalidLocationOperator {
operator: LocationOperator,
part_count: usize,
},
InvalidRegion {
molecule_length: usize,
reason: String,
},
DuplicateFeatureId {
id: String,
},
}Expand description
Errors raised while constructing checked domain values.
Variants§
EmptySequence
A sequence was empty.
InvalidSymbol
A sequence contained a non-IUPAC DNA symbol.
EmptyId
A stable identifier was empty.
EmptyLocation
A location had no regions.
InvalidLocationOperator
The operator did not match the number of regions.
InvalidRegion
A region did not fit the molecule.
DuplicateFeatureId
Two features used the same record-local identifier.
Trait Implementations§
Source§impl Clone for DomainError
impl Clone for DomainError
Source§fn clone(&self) -> DomainError
fn clone(&self) -> DomainError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DomainError
impl Debug for DomainError
Source§impl Display for DomainError
impl Display for DomainError
impl Eq for DomainError
Source§impl Error for DomainError
impl Error for DomainError
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<DomainError> for AnnotationError
impl From<DomainError> for AnnotationError
Source§fn from(source: DomainError) -> Self
fn from(source: DomainError) -> Self
Converts to this type from the input type.
Source§impl From<DomainError> for GibsonError
impl From<DomainError> for GibsonError
Source§fn from(source: DomainError) -> Self
fn from(source: DomainError) -> Self
Converts to this type from the input type.
Source§impl From<DomainError> for RestrictionError
impl From<DomainError> for RestrictionError
Source§fn from(source: DomainError) -> Self
fn from(source: DomainError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DomainError
impl PartialEq for DomainError
impl StructuralPartialEq for DomainError
Auto Trait Implementations§
impl Freeze for DomainError
impl RefUnwindSafe for DomainError
impl Send for DomainError
impl Sync for DomainError
impl Unpin for DomainError
impl UnsafeUnpin for DomainError
impl UnwindSafe for DomainError
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