pub enum CsGenError {
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.3-a) nicht
unterstuetzt. construct ist eine kurze Bezeichnung (z.B.
"interface", "valuetype", "fixed", "any", "map",
"bitset", "bitmask").
Fields
InvalidName
Identifier kollidiert mit einem reservierten C#-Keyword.
Anders als bei C++ wird in C# nicht abgelehnt, sondern mit
@-Prefix escaped (Spec-Verhalten, §6 IDL4-CS-Mapping).
Dieser Fehler tritt nur auf, wenn der Name selbst nach Escape
noch ungueltig waere (leerer String, doppelter @, …).
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 CsGenError
impl Clone for CsGenError
Source§fn clone(&self) -> CsGenError
fn clone(&self) -> CsGenError
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 CsGenError
impl Debug for CsGenError
Source§impl Display for CsGenError
impl Display for CsGenError
Source§impl Error for CsGenError
impl Error for CsGenError
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 CsGenError
impl PartialEq for CsGenError
Source§fn eq(&self, other: &CsGenError) -> bool
fn eq(&self, other: &CsGenError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CsGenError
impl StructuralPartialEq for CsGenError
Auto Trait Implementations§
impl Freeze for CsGenError
impl RefUnwindSafe for CsGenError
impl Send for CsGenError
impl Sync for CsGenError
impl Unpin for CsGenError
impl UnsafeUnpin for CsGenError
impl UnwindSafe for CsGenError
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