pub enum DepError {
Show 39 variants
NomeEmpty,
NomeInvalid {
nome: String,
reason: String,
},
VersaoEmpty {
nome: String,
},
VersaoInvalid {
nome: String,
versao: String,
reason: String,
},
FonteRepoEmpty {
nome: String,
},
FonteRepoShape {
nome: String,
repo: String,
reason: String,
},
FontePinMissing {
nome: String,
},
FontePinAmbiguous {
nome: String,
pins: String,
},
FontePinEmpty {
nome: String,
pin: String,
},
FontePinShape {
nome: String,
pin: String,
value: String,
reason: String,
},
FonteCaminhoEmpty {
nome: String,
},
FonteCaminhoAbsolute {
nome: String,
caminho: String,
},
FonteCaminhoTildeExpansion {
nome: String,
caminho: String,
},
FonteCaminhoVarExpansion {
nome: String,
caminho: String,
},
FonteCaminhoLeadingWhitespace {
nome: String,
caminho: String,
},
FonteCaminhoLeadingHyphen {
nome: String,
caminho: String,
},
FonteCaminhoControlChar {
nome: String,
caminho: String,
byte: u8,
},
FonteCaminhoBackslash {
nome: String,
caminho: String,
},
FonteCaminhoShellRedirection {
nome: String,
caminho: String,
byte: u8,
},
FonteCaminhoShellPipe {
nome: String,
caminho: String,
},
FonteCaminhoShellSemicolon {
nome: String,
caminho: String,
},
FonteCaminhoShellBackground {
nome: String,
caminho: String,
},
FonteCaminhoShellCommandSubstitution {
nome: String,
caminho: String,
},
FonteCaminhoShellGlob {
nome: String,
caminho: String,
byte: u8,
},
FonteCaminhoShellSubshellGrouping {
nome: String,
caminho: String,
byte: u8,
},
FonteCaminhoShellBraceExpansion {
nome: String,
caminho: String,
byte: u8,
},
FonteCaminhoShellBracketExpansion {
nome: String,
caminho: String,
byte: u8,
},
FonteCaminhoShellQuoteGrouping {
nome: String,
caminho: String,
byte: u8,
},
FonteCaminhoShellComment {
nome: String,
caminho: String,
byte: u8,
},
FonteCaminhoUrlPercentEncoding {
nome: String,
caminho: String,
byte: u8,
},
FonteCaminhoShellVariableExpansion {
nome: String,
caminho: String,
byte: u8,
},
FonteCaminhoShellHistoryExpansion {
nome: String,
caminho: String,
byte: u8,
},
FonteCaminhoShellHistorySubstitution {
nome: String,
caminho: String,
byte: u8,
},
FonteCaminhoTrailingSlash {
nome: String,
caminho: String,
},
DuplicateNome {
nome: String,
list: &'static str,
},
CaracteristicaEmpty {
nome: String,
},
CaracteristicaInvalid {
nome: String,
caracteristica: String,
reason: String,
},
CaracteristicaDuplicate {
nome: String,
caracteristica: String,
},
DepIsSelf {
nome: String,
list: &'static str,
},
}Expand description
Errors raised by Dep::validate.
Mirrors the per-axis error families the other :versao-carrying
typed surfaces expose
(crate::AplicacaoError::MembroVersaoEmpty /
crate::AplicacaoError::MembroVersaoInvalid,
crate::SupervisorError::EmptyChildVersion /
crate::SupervisorError::ChildVersaoInvalid) so a future top-
level CaixaError (M4) sums these without reshaping the diagnostic.
Variants§
NomeEmpty
NomeInvalid
VersaoEmpty
VersaoInvalid
FonteRepoEmpty
FonteRepoShape
FontePinMissing
FontePinAmbiguous
FontePinEmpty
FontePinShape
FonteCaminhoEmpty
FonteCaminhoAbsolute
FonteCaminhoTildeExpansion
FonteCaminhoVarExpansion
FonteCaminhoLeadingWhitespace
FonteCaminhoLeadingHyphen
FonteCaminhoControlChar
FonteCaminhoBackslash
FonteCaminhoShellRedirection
FonteCaminhoShellPipe
FonteCaminhoShellSemicolon
FonteCaminhoShellBackground
FonteCaminhoShellCommandSubstitution
FonteCaminhoShellGlob
FonteCaminhoShellSubshellGrouping
FonteCaminhoShellBraceExpansion
FonteCaminhoShellBracketExpansion
FonteCaminhoShellQuoteGrouping
FonteCaminhoShellComment
FonteCaminhoUrlPercentEncoding
FonteCaminhoShellVariableExpansion
FonteCaminhoShellHistoryExpansion
FonteCaminhoShellHistorySubstitution
FonteCaminhoTrailingSlash
DuplicateNome
CaracteristicaEmpty
CaracteristicaInvalid
CaracteristicaDuplicate
DepIsSelf
Implementations§
Source§impl DepError
impl DepError
Sourcepub fn fonte_caminho_absolute(nome: &str, caminho: &str) -> Self
pub fn fonte_caminho_absolute(nome: &str, caminho: &str) -> Self
Construct a DepError::FonteCaminhoAbsolute naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair. Folds the uniform Self::FonteCaminhoAbsolute { nome: nome.to_string(), caminho: caminho.to_string() } two-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift four-line open-coded block.
Sourcepub fn fonte_caminho_tilde_expansion(nome: &str, caminho: &str) -> Self
pub fn fonte_caminho_tilde_expansion(nome: &str, caminho: &str) -> Self
Construct a DepError::FonteCaminhoTildeExpansion naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair. Folds the uniform Self::FonteCaminhoTildeExpansion { nome: nome.to_string(), caminho: caminho.to_string() } two-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift four-line open-coded block.
Sourcepub fn fonte_caminho_var_expansion(nome: &str, caminho: &str) -> Self
pub fn fonte_caminho_var_expansion(nome: &str, caminho: &str) -> Self
Construct a DepError::FonteCaminhoVarExpansion naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair. Folds the uniform Self::FonteCaminhoVarExpansion { nome: nome.to_string(), caminho: caminho.to_string() } two-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift four-line open-coded block.
Sourcepub fn fonte_caminho_leading_whitespace(nome: &str, caminho: &str) -> Self
pub fn fonte_caminho_leading_whitespace(nome: &str, caminho: &str) -> Self
Construct a DepError::FonteCaminhoLeadingWhitespace naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair. Folds the uniform Self::FonteCaminhoLeadingWhitespace { nome: nome.to_string(), caminho: caminho.to_string() } two-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift four-line open-coded block.
Sourcepub fn fonte_caminho_leading_hyphen(nome: &str, caminho: &str) -> Self
pub fn fonte_caminho_leading_hyphen(nome: &str, caminho: &str) -> Self
Construct a DepError::FonteCaminhoLeadingHyphen naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair. Folds the uniform Self::FonteCaminhoLeadingHyphen { nome: nome.to_string(), caminho: caminho.to_string() } two-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift four-line open-coded block.
Sourcepub fn fonte_caminho_backslash(nome: &str, caminho: &str) -> Self
pub fn fonte_caminho_backslash(nome: &str, caminho: &str) -> Self
Construct a DepError::FonteCaminhoBackslash naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair. Folds the uniform Self::FonteCaminhoBackslash { nome: nome.to_string(), caminho: caminho.to_string() } two-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift four-line open-coded block.
Sourcepub fn fonte_caminho_shell_pipe(nome: &str, caminho: &str) -> Self
pub fn fonte_caminho_shell_pipe(nome: &str, caminho: &str) -> Self
Construct a DepError::FonteCaminhoShellPipe naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair. Folds the uniform Self::FonteCaminhoShellPipe { nome: nome.to_string(), caminho: caminho.to_string() } two-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift four-line open-coded block.
Sourcepub fn fonte_caminho_shell_semicolon(nome: &str, caminho: &str) -> Self
pub fn fonte_caminho_shell_semicolon(nome: &str, caminho: &str) -> Self
Construct a DepError::FonteCaminhoShellSemicolon naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair. Folds the uniform Self::FonteCaminhoShellSemicolon { nome: nome.to_string(), caminho: caminho.to_string() } two-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift four-line open-coded block.
Sourcepub fn fonte_caminho_shell_background(nome: &str, caminho: &str) -> Self
pub fn fonte_caminho_shell_background(nome: &str, caminho: &str) -> Self
Construct a DepError::FonteCaminhoShellBackground naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair. Folds the uniform Self::FonteCaminhoShellBackground { nome: nome.to_string(), caminho: caminho.to_string() } two-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift four-line open-coded block.
Sourcepub fn fonte_caminho_shell_command_substitution(
nome: &str,
caminho: &str,
) -> Self
pub fn fonte_caminho_shell_command_substitution( nome: &str, caminho: &str, ) -> Self
Construct a DepError::FonteCaminhoShellCommandSubstitution naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair. Folds the uniform Self::FonteCaminhoShellCommandSubstitution { nome: nome.to_string(), caminho: caminho.to_string() } two-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift four-line open-coded block.
Sourcepub fn fonte_caminho_trailing_slash(nome: &str, caminho: &str) -> Self
pub fn fonte_caminho_trailing_slash(nome: &str, caminho: &str) -> Self
Construct a DepError::FonteCaminhoTrailingSlash naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair. Folds the uniform Self::FonteCaminhoTrailingSlash { nome: nome.to_string(), caminho: caminho.to_string() } two-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift four-line open-coded block.
Source§impl DepError
impl DepError
Sourcepub fn fonte_caminho_control_char(nome: &str, caminho: &str, byte: u8) -> Self
pub fn fonte_caminho_control_char(nome: &str, caminho: &str, byte: u8) -> Self
Construct a DepError::FonteCaminhoControlChar naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair + the offending byte: u8 classification. Folds the uniform Self::FonteCaminhoControlChar { nome: nome.to_string(), caminho: caminho.to_string(), byte } three-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block.
Sourcepub fn fonte_caminho_shell_redirection(
nome: &str,
caminho: &str,
byte: u8,
) -> Self
pub fn fonte_caminho_shell_redirection( nome: &str, caminho: &str, byte: u8, ) -> Self
Construct a DepError::FonteCaminhoShellRedirection naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair + the offending byte: u8 classification. Folds the uniform Self::FonteCaminhoShellRedirection { nome: nome.to_string(), caminho: caminho.to_string(), byte } three-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block.
Sourcepub fn fonte_caminho_shell_glob(nome: &str, caminho: &str, byte: u8) -> Self
pub fn fonte_caminho_shell_glob(nome: &str, caminho: &str, byte: u8) -> Self
Construct a DepError::FonteCaminhoShellGlob naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair + the offending byte: u8 classification. Folds the uniform Self::FonteCaminhoShellGlob { nome: nome.to_string(), caminho: caminho.to_string(), byte } three-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block.
Sourcepub fn fonte_caminho_shell_subshell_grouping(
nome: &str,
caminho: &str,
byte: u8,
) -> Self
pub fn fonte_caminho_shell_subshell_grouping( nome: &str, caminho: &str, byte: u8, ) -> Self
Construct a DepError::FonteCaminhoShellSubshellGrouping naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair + the offending byte: u8 classification. Folds the uniform Self::FonteCaminhoShellSubshellGrouping { nome: nome.to_string(), caminho: caminho.to_string(), byte } three-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block.
Sourcepub fn fonte_caminho_shell_brace_expansion(
nome: &str,
caminho: &str,
byte: u8,
) -> Self
pub fn fonte_caminho_shell_brace_expansion( nome: &str, caminho: &str, byte: u8, ) -> Self
Construct a DepError::FonteCaminhoShellBraceExpansion naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair + the offending byte: u8 classification. Folds the uniform Self::FonteCaminhoShellBraceExpansion { nome: nome.to_string(), caminho: caminho.to_string(), byte } three-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block.
Sourcepub fn fonte_caminho_shell_bracket_expansion(
nome: &str,
caminho: &str,
byte: u8,
) -> Self
pub fn fonte_caminho_shell_bracket_expansion( nome: &str, caminho: &str, byte: u8, ) -> Self
Construct a DepError::FonteCaminhoShellBracketExpansion naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair + the offending byte: u8 classification. Folds the uniform Self::FonteCaminhoShellBracketExpansion { nome: nome.to_string(), caminho: caminho.to_string(), byte } three-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block.
Sourcepub fn fonte_caminho_shell_quote_grouping(
nome: &str,
caminho: &str,
byte: u8,
) -> Self
pub fn fonte_caminho_shell_quote_grouping( nome: &str, caminho: &str, byte: u8, ) -> Self
Construct a DepError::FonteCaminhoShellQuoteGrouping naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair + the offending byte: u8 classification. Folds the uniform Self::FonteCaminhoShellQuoteGrouping { nome: nome.to_string(), caminho: caminho.to_string(), byte } three-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block.
Sourcepub fn fonte_caminho_shell_comment(nome: &str, caminho: &str, byte: u8) -> Self
pub fn fonte_caminho_shell_comment(nome: &str, caminho: &str, byte: u8) -> Self
Construct a DepError::FonteCaminhoShellComment naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair + the offending byte: u8 classification. Folds the uniform Self::FonteCaminhoShellComment { nome: nome.to_string(), caminho: caminho.to_string(), byte } three-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block.
Sourcepub fn fonte_caminho_url_percent_encoding(
nome: &str,
caminho: &str,
byte: u8,
) -> Self
pub fn fonte_caminho_url_percent_encoding( nome: &str, caminho: &str, byte: u8, ) -> Self
Construct a DepError::FonteCaminhoUrlPercentEncoding naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair + the offending byte: u8 classification. Folds the uniform Self::FonteCaminhoUrlPercentEncoding { nome: nome.to_string(), caminho: caminho.to_string(), byte } three-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block.
Sourcepub fn fonte_caminho_shell_variable_expansion(
nome: &str,
caminho: &str,
byte: u8,
) -> Self
pub fn fonte_caminho_shell_variable_expansion( nome: &str, caminho: &str, byte: u8, ) -> Self
Construct a DepError::FonteCaminhoShellVariableExpansion naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair + the offending byte: u8 classification. Folds the uniform Self::FonteCaminhoShellVariableExpansion { nome: nome.to_string(), caminho: caminho.to_string(), byte } three-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block.
Sourcepub fn fonte_caminho_shell_history_expansion(
nome: &str,
caminho: &str,
byte: u8,
) -> Self
pub fn fonte_caminho_shell_history_expansion( nome: &str, caminho: &str, byte: u8, ) -> Self
Construct a DepError::FonteCaminhoShellHistoryExpansion naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair + the offending byte: u8 classification. Folds the uniform Self::FonteCaminhoShellHistoryExpansion { nome: nome.to_string(), caminho: caminho.to_string(), byte } three-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block.
Sourcepub fn fonte_caminho_shell_history_substitution(
nome: &str,
caminho: &str,
byte: u8,
) -> Self
pub fn fonte_caminho_shell_history_substitution( nome: &str, caminho: &str, byte: u8, ) -> Self
Construct a DepError::FonteCaminhoShellHistorySubstitution naming the offending :deps :nome + :fonte (:tipo path …) :caminho pair + the offending byte: u8 classification. Folds the uniform Self::FonteCaminhoShellHistorySubstitution { nome: nome.to_string(), caminho: caminho.to_string(), byte } three-slot struct-literal onto one substrate primitive so every DepSource::validate_caminho wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block.
Source§impl DepError
impl DepError
Sourcepub fn versao_empty(nome: &str) -> Self
pub fn versao_empty(nome: &str) -> Self
Construct a DepError::VersaoEmpty naming the offending :deps :nome. Folds the uniform Self::VersaoEmpty { nome: nome.to_string() } one-field struct-literal onto one substrate primitive so every in-crate wire-up on this variant reads through one dispatch rather than the pre-lift three-line open-coded block.
Sourcepub fn fonte_repo_empty(nome: &str) -> Self
pub fn fonte_repo_empty(nome: &str) -> Self
Construct a DepError::FonteRepoEmpty naming the offending :deps :nome. Folds the uniform Self::FonteRepoEmpty { nome: nome.to_string() } one-field struct-literal onto one substrate primitive so every in-crate wire-up on this variant reads through one dispatch rather than the pre-lift three-line open-coded block.
Sourcepub fn fonte_pin_missing(nome: &str) -> Self
pub fn fonte_pin_missing(nome: &str) -> Self
Construct a DepError::FontePinMissing naming the offending :deps :nome. Folds the uniform Self::FontePinMissing { nome: nome.to_string() } one-field struct-literal onto one substrate primitive so every in-crate wire-up on this variant reads through one dispatch rather than the pre-lift three-line open-coded block.
Sourcepub fn fonte_caminho_empty(nome: &str) -> Self
pub fn fonte_caminho_empty(nome: &str) -> Self
Construct a DepError::FonteCaminhoEmpty naming the offending :deps :nome. Folds the uniform Self::FonteCaminhoEmpty { nome: nome.to_string() } one-field struct-literal onto one substrate primitive so every in-crate wire-up on this variant reads through one dispatch rather than the pre-lift three-line open-coded block.
Sourcepub fn caracteristica_empty(nome: &str) -> Self
pub fn caracteristica_empty(nome: &str) -> Self
Construct a DepError::CaracteristicaEmpty naming the offending :deps :nome. Folds the uniform Self::CaracteristicaEmpty { nome: nome.to_string() } one-field struct-literal onto one substrate primitive so every in-crate wire-up on this variant reads through one dispatch rather than the pre-lift three-line open-coded block.
Source§impl DepError
impl DepError
Sourcepub fn duplicate_nome(nome: &str, list: &'static str) -> Self
pub fn duplicate_nome(nome: &str, list: &'static str) -> Self
Construct a DepError::DuplicateNome naming the offending :deps :nome and the author-surface list tag (:deps vs. :deps-dev) the diagnostic points the author back at. Folds the uniform Self::DuplicateNome { nome: nome.to_string(), list } two-field struct-literal onto one substrate primitive so every in-crate wire-up on this variant reads through one dispatch rather than the pre-lift open-coded struct-literal block.
Sourcepub fn dep_is_self(nome: &str, list: &'static str) -> Self
pub fn dep_is_self(nome: &str, list: &'static str) -> Self
Construct a DepError::DepIsSelf naming the offending :deps :nome and the author-surface list tag (:deps vs. :deps-dev) the diagnostic points the author back at. Folds the uniform Self::DepIsSelf { nome: nome.to_string(), list } two-field struct-literal onto one substrate primitive so every in-crate wire-up on this variant reads through one dispatch rather than the pre-lift open-coded struct-literal block.
Source§impl DepError
impl DepError
Sourcepub fn versao_invalid(nome: &str, versao: &str, reason: String) -> Self
pub fn versao_invalid(nome: &str, versao: &str, reason: String) -> Self
Construct a DepError::VersaoInvalid naming the offending :deps :nome, the offending :versao axis value, and the parser-shaped rejection reason. Folds the uniform Self::VersaoInvalid { nome: nome.to_string(), versao: versao.to_string(), reason } three-field struct-literal onto one substrate primitive so every in-crate wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block. The nome: &str and versao: &str parameters accept &str literals and &String (via Deref coercion) so every existing wire-up threads through the ctor without a pre-conversion; the reason: String parameter takes an owned String (not impl Into<String>) matching the paired crate::render::* predicate’s Result<(), String> return shape every wire-up already holds owned at the call site.
Sourcepub fn fonte_repo_shape(nome: &str, repo: &str, reason: String) -> Self
pub fn fonte_repo_shape(nome: &str, repo: &str, reason: String) -> Self
Construct a DepError::FonteRepoShape naming the offending :deps :nome, the offending :repo axis value, and the parser-shaped rejection reason. Folds the uniform Self::FonteRepoShape { nome: nome.to_string(), repo: repo.to_string(), reason } three-field struct-literal onto one substrate primitive so every in-crate wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block. The nome: &str and repo: &str parameters accept &str literals and &String (via Deref coercion) so every existing wire-up threads through the ctor without a pre-conversion; the reason: String parameter takes an owned String (not impl Into<String>) matching the paired crate::render::* predicate’s Result<(), String> return shape every wire-up already holds owned at the call site.
Sourcepub fn caracteristica_invalid(
nome: &str,
caracteristica: &str,
reason: String,
) -> Self
pub fn caracteristica_invalid( nome: &str, caracteristica: &str, reason: String, ) -> Self
Construct a DepError::CaracteristicaInvalid naming the offending :deps :nome, the offending :caracteristica axis value, and the parser-shaped rejection reason. Folds the uniform Self::CaracteristicaInvalid { nome: nome.to_string(), caracteristica: caracteristica.to_string(), reason } three-field struct-literal onto one substrate primitive so every in-crate wire-up on this variant reads through one dispatch rather than the pre-lift five-line open-coded block. The nome: &str and caracteristica: &str parameters accept &str literals and &String (via Deref coercion) so every existing wire-up threads through the ctor without a pre-conversion; the reason: String parameter takes an owned String (not impl Into<String>) matching the paired crate::render::* predicate’s Result<(), String> return shape every wire-up already holds owned at the call site.
Source§impl DepError
impl DepError
Sourcepub fn fonte_pin_shape(
nome: &str,
pin: &str,
value: &str,
reason: String,
) -> Self
pub fn fonte_pin_shape( nome: &str, pin: &str, value: &str, reason: String, ) -> Self
Construct a DepError::FontePinShape naming the offending
:deps :nome, the offending :fonte (:tipo git …) :<pin>
axis tag, the offending value, and the parser-shaped reason.
Folds the uniform
Self::FontePinShape { nome: nome.to_string(), pin: pin.to_string(), value: value.to_string(), reason }
four-field struct-literal onto one substrate primitive so
every DepSource::validate wire-up on this variant reads
through one dispatch rather than the pre-lift six-line
open-coded block. The nome string threads verbatim from
Dep::nome at the call site; the pin string carries the
author-surface :tag / :branch / :rev tag verbatim; the
value string carries the offending refname / hex-OID
verbatim; and reason forwards the owned String returned
by crate::render::is_git_ref_name /
crate::render::is_git_oid without a .into() shim.
Trait Implementations§
impl Eq for DepError
Source§impl Error for DepError
impl Error for DepError
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()
impl StructuralPartialEq for DepError
Auto Trait Implementations§
impl Freeze for DepError
impl RefUnwindSafe for DepError
impl Send for DepError
impl Sync for DepError
impl Unpin for DepError
impl UnsafeUnpin for DepError
impl UnwindSafe for DepError
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.