pub enum CanonicalSourceError {
InvalidIdentifier {
context: &'static str,
name: String,
},
InvalidPath {
context: &'static str,
path: String,
},
NonSourceableExpression {
kind: &'static str,
},
NonSourceableType {
kind: &'static str,
},
UnsupportedNumber {
value: String,
},
UnknownHostDescriptorConstructor {
type_name: String,
},
AmbiguousHostDescriptorConstructor {
type_name: String,
paths: Vec<String>,
},
}Expand description
Error returned when canonical IR cannot be represented as Lashlang source.
Variants§
InvalidIdentifier
InvalidPath
NonSourceableExpression
NonSourceableType
UnsupportedNumber
UnknownHostDescriptorConstructor
AmbiguousHostDescriptorConstructor
Trait Implementations§
Source§impl Clone for CanonicalSourceError
impl Clone for CanonicalSourceError
Source§fn clone(&self) -> CanonicalSourceError
fn clone(&self) -> CanonicalSourceError
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 CanonicalSourceError
impl Debug for CanonicalSourceError
Source§impl Display for CanonicalSourceError
impl Display for CanonicalSourceError
impl Eq for CanonicalSourceError
Source§impl Error for CanonicalSourceError
impl Error for CanonicalSourceError
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 From<CanonicalSourceError> for ModuleIntrospectionError
impl From<CanonicalSourceError> for ModuleIntrospectionError
Source§fn from(source: CanonicalSourceError) -> Self
fn from(source: CanonicalSourceError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CanonicalSourceError
impl PartialEq for CanonicalSourceError
Source§fn eq(&self, other: &CanonicalSourceError) -> bool
fn eq(&self, other: &CanonicalSourceError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CanonicalSourceError
Auto Trait Implementations§
impl Freeze for CanonicalSourceError
impl RefUnwindSafe for CanonicalSourceError
impl Send for CanonicalSourceError
impl Sync for CanonicalSourceError
impl Unpin for CanonicalSourceError
impl UnsafeUnpin for CanonicalSourceError
impl UnwindSafe for CanonicalSourceError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more