pub enum DeclarationError {
EmptyNamespace,
EmptyStem,
SpellingNotAnIdentifier,
PathSegmentsAbsent,
PathSegmentsUnbounded,
}Expand description
A support-declaration refusal.
Variants§
EmptyNamespace
A name has no owner.
EmptyStem
A name has no spelling.
SpellingNotAnIdentifier
A spelling is not one Rust identifier.
PathSegmentsAbsent
A path has no segment after its root.
PathSegmentsUnbounded
A path exceeds its segment bound.
Implementations§
Source§impl DeclarationError
impl DeclarationError
Sourcepub fn canonical_bytes(self) -> Vec<u8> ⓘ
pub fn canonical_bytes(self) -> Vec<u8> ⓘ
Returns canonical bytes.
Sourcepub fn encode_into(self, into: &mut Vec<u8>)
pub fn encode_into(self, into: &mut Vec<u8>)
Appends canonical bytes.
Trait Implementations§
Source§impl Clone for DeclarationError
impl Clone for DeclarationError
Source§fn clone(&self) -> DeclarationError
fn clone(&self) -> DeclarationError
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 moreimpl Copy for DeclarationError
Source§impl Debug for DeclarationError
impl Debug for DeclarationError
Source§impl Display for DeclarationError
impl Display for DeclarationError
impl Eq for DeclarationError
Source§impl Error for DeclarationError
impl Error for DeclarationError
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 Hash for DeclarationError
impl Hash for DeclarationError
Source§impl PartialEq for DeclarationError
impl PartialEq for DeclarationError
Source§impl Refused for DeclarationError
impl Refused for DeclarationError
Source§const FAMILY: Family = SUPPORT_DECLARATION_FAMILY
const FAMILY: Family = SUPPORT_DECLARATION_FAMILY
The family whose issue space this refusal’s related identities derive in. Read more
Source§fn class(&self) -> RefusalClass
fn class(&self) -> RefusalClass
Which class of refusal the summary line opens with.
Source§fn observed(&self) -> Observed
fn observed(&self) -> Observed
How what was observed differs from the expected contract, read off that same first issue.
One canonical byte string per issue established BEYOND the primary cause, in the order the body established them. Read more
impl StructuralPartialEq for DeclarationError
Auto Trait Implementations§
impl Freeze for DeclarationError
impl RefUnwindSafe for DeclarationError
impl Send for DeclarationError
impl Sync for DeclarationError
impl Unpin for DeclarationError
impl UnsafeUnpin for DeclarationError
impl UnwindSafe for DeclarationError
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