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 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.
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.