pub enum CppGenError {
UnsupportedConstruct {
construct: String,
context: Option<String>,
},
InvalidName {
name: String,
reason: String,
},
InheritanceCycle {
type_name: String,
},
Internal(String),
}Expand description
Top-level error of the C++ code generator.
Variants§
UnsupportedConstruct
The IDL construct is not supported in the current foundation
scope (C5.1-a). construct is a short label (e.g.
"interface", "valuetype", "fixed", "any", "map").
Fields
InvalidName
Identifier collides with a reserved C++ keyword (§7.4.5 implementation mapping requires collision avoidance).
Fields
InheritanceCycle
Inheritance cycle in the struct graph (self-reference or indirect loop). Detected before emission.
Internal(String)
The generated output is internally inconsistent (should not happen — bug indicator).
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
impl Eq 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 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