pub struct CodecError { /* private fields */ }Expand description
How declaring a codec says no.
The passes that reach it are dependent in a stated order, so exactly one cause is true of a refused path, spelling, or road — while the pass over a shape’s members co-establishes freely, because a caller told about one colliding member and not the next is a caller who repairs a shape one attempt at a time.
Implementations§
Source§impl CodecError
impl CodecError
Sourcepub fn of(issue: CodecIssue) -> Self
pub fn of(issue: CodecIssue) -> Self
The refusal one established issue makes.
Sourcepub fn over(first: CodecIssue, rest: Vec<CodecIssue>) -> Self
pub fn over(first: CodecIssue, rest: Vec<CodecIssue>) -> Self
The refusal a pass whose checks co-establish makes.
The caller arrives holding every issue its pass established, so the posture the body writes is about the REPORT and never about the pass: where the issues fit it carries all of them, and where they do not it carries what fits and counts the rest.
Sourcepub fn first_issue(&self) -> &CodecIssue
pub fn first_issue(&self) -> &CodecIssue
The first issue the pass established, which every refusal has.
Sourcepub fn issues(&self) -> &NonEmpty<CodecIssue, CODEC_ISSUE_LIMIT>
pub fn issues(&self) -> &NonEmpty<CodecIssue, CODEC_ISSUE_LIMIT>
Every issue this refusal carries, in the order the pass established them; structurally at least one.
Trait Implementations§
Source§impl Clone for CodecError
impl Clone for CodecError
Source§fn clone(&self) -> CodecError
fn clone(&self) -> CodecError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CodecError
impl Debug for CodecError
Source§impl Display for CodecError
impl Display for CodecError
impl Eq for CodecError
Source§impl Error for CodecError
impl Error for CodecError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl Hash for CodecError
impl Hash for CodecError
Source§impl PartialEq for CodecError
impl PartialEq for CodecError
Source§impl Refused for CodecError
impl Refused for CodecError
The issues established beyond the primary cause; the primary is the summary’s own subject, never a member of its related set.
Source§fn repairs(&self) -> Bounded<Repair, REPAIR_LIMIT>
fn repairs(&self) -> Bounded<Repair, REPAIR_LIMIT>
This home declares no repair of its own.
Every issue is about what the caller’s own declaration states, so the repair is that declaration; a sentence composed here would be this compiler citing a fact nobody declared.