pub enum CppGenError {
UnsupportedConstruct {
construct: String,
context: Option<String>,
},
InvalidName {
name: String,
reason: String,
},
InheritanceCycle {
type_name: String,
},
Internal(String),
}Expand description
Top-Level-Fehler des C++-Code-Generators.
Variants§
UnsupportedConstruct
IDL-Konstrukt ist im aktuellen Foundation-Scope (C5.1-a) nicht
unterstuetzt. construct ist eine kurze Bezeichnung (z.B.
"interface", "valuetype", "fixed", "any", "map").
Fields
InvalidName
Identifier kollidiert mit einem reservierten C++-Keyword (§7.4.5 Implementation-Mapping verlangt Kollisionsvermeidung).
Fields
InheritanceCycle
Inheritance-Cycle im Struct-Graphen (Self-Reference oder indirekte Schleife). Wird vor der Emission erkannt.
Internal(String)
Generierter Output ist intern inkonsistent (sollte nicht auftreten — Bug-Indikator).
Trait Implementations§
Source§impl Clone for CppGenError
impl Clone for CppGenError
Source§fn clone(&self) -> CppGenError
fn clone(&self) -> CppGenError
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 moreSource§impl Debug for CppGenError
impl Debug for CppGenError
Source§impl Display for CppGenError
impl Display for CppGenError
Source§impl Error for CppGenError
impl Error for CppGenError
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 PartialEq for CppGenError
impl PartialEq for CppGenError
Source§fn eq(&self, other: &CppGenError) -> bool
fn eq(&self, other: &CppGenError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CppGenError
impl StructuralPartialEq for CppGenError
Auto Trait Implementations§
impl Freeze for CppGenError
impl RefUnwindSafe for CppGenError
impl Send for CppGenError
impl Sync for CppGenError
impl Unpin for CppGenError
impl UnsafeUnpin for CppGenError
impl UnwindSafe for CppGenError
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