pub enum IdlPythonError {
Unsupported(String),
NameConflict(String),
}Expand description
Codegen error while emitting Python code.
Variants§
Unsupported(String)
IDL construct outside the supported Python mapping scope (e.g. bitmask, map, fixed, any, valuetype, interface). Phase-2 material.
NameConflict(String)
Language-map conflict: an IDL identifier collides with a Python reserved word and the configured escape mode would cause two different IDL names to yield the same Python name.
Trait Implementations§
Source§impl Clone for IdlPythonError
impl Clone for IdlPythonError
Source§fn clone(&self) -> IdlPythonError
fn clone(&self) -> IdlPythonError
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 IdlPythonError
impl Debug for IdlPythonError
Source§impl Display for IdlPythonError
impl Display for IdlPythonError
impl Eq for IdlPythonError
Source§impl Error for IdlPythonError
impl Error for IdlPythonError
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 IdlPythonError
impl PartialEq for IdlPythonError
Source§fn eq(&self, other: &IdlPythonError) -> bool
fn eq(&self, other: &IdlPythonError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for IdlPythonError
Auto Trait Implementations§
impl Freeze for IdlPythonError
impl RefUnwindSafe for IdlPythonError
impl Send for IdlPythonError
impl Sync for IdlPythonError
impl Unpin for IdlPythonError
impl UnsafeUnpin for IdlPythonError
impl UnwindSafe for IdlPythonError
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