pub enum DialetoError {
Vazio,
NaoEhLista,
CabecaErrada {
encontrado: String,
},
Leitura(String),
}Expand description
A source that is not a (defcaixa …) / (defmolde …) form at all.
Variants§
Implementations§
Source§impl DialetoError
impl DialetoError
Sourcepub fn cabeca_errada(encontrado: &str) -> Self
pub fn cabeca_errada(encontrado: &str) -> Self
Construct a DialetoError::CabecaErrada naming the offending
head symbol found at the top-level form.
Substrate primitive every classify_form wrong-head fallthrough
wire-up site now routes through, folding the pre-lift uniform
three-line Self::CabecaErrada { encontrado: <head>.to_string() }
one-field struct-literal onto one substrate primitive matching the
peer LimitsError::unknown_byte_unit(unit: &str) /
LimitsError::unknown_duration_unit(unit: &str)
(limits_codec_unit_only_ctors! — 29fac09) single-slot
discipline on the sibling one-field { <field>: String } envelope
axis, and matching the peer ManifestError::code_path_empty /
BehaviorError::empty_path / UpgradeError::duplicate_from /
AplicacaoError::placement_cluster_duplicate (94dabc8 / 0e33b37 /
7e52aec / 92b1c92) single-slot inherent-ctor discipline every
sibling { <field>: <T> } error-envelope variant on caixa-core’s
error surface now carries.
The one open-coded wire-up site — classify_form’s wrong-head
fallthrough arm on the head: &str binding read from the
top-level form via tatara_lisp::Sexp::as_symbol — opened the
identical three-line
Self::CabecaErrada { encontrado: <head>.to_string() } block
against the codec-scoped <head>: &str binding. Now routes
through DialetoError::cabeca_errada(head), byte-equal to the
pre-lift struct-literal on the same &str fixture, so any future
widening of the diagnostic shape (e.g. carrying the source-file
path alongside the head symbol, carrying the head symbol’s
position offset for an authoring-surface caret pointer) lands at
exactly one dispatch on the substrate primitive rather than re-
inlining the struct-literal at every wrong-head fallthrough
consumer.
Trait Implementations§
Source§impl Clone for DialetoError
impl Clone for DialetoError
Source§fn clone(&self) -> DialetoError
fn clone(&self) -> DialetoError
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 DialetoError
impl Debug for DialetoError
Source§impl Display for DialetoError
impl Display for DialetoError
impl Eq for DialetoError
Source§impl Error for DialetoError
impl Error for DialetoError
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 From<DialetoError> for LeituraError
impl From<DialetoError> for LeituraError
Source§fn from(source: DialetoError) -> Self
fn from(source: DialetoError) -> Self
Source§impl PartialEq for DialetoError
impl PartialEq for DialetoError
impl StructuralPartialEq for DialetoError
Auto Trait Implementations§
impl Freeze for DialetoError
impl RefUnwindSafe for DialetoError
impl Send for DialetoError
impl Sync for DialetoError
impl Unpin for DialetoError
impl UnsafeUnpin for DialetoError
impl UnwindSafe for DialetoError
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.