pub enum ForeignInterfaceError {
MissingForeignMark {
span: SourceSpan,
},
MissingForeignFlag {
kind: &'static str,
hint: &'static str,
span: SourceSpan,
},
InvalidForeignModule {
span: SourceSpan,
},
InvalidForeignName {
span: SourceSpan,
},
}
Variants§
MissingForeignMark
Fields
§
span: SourceSpan
MissingForeignFlag
InvalidForeignModule
Fields
§
span: SourceSpan
InvalidForeignName
Fields
§
span: SourceSpan
Trait Implementations§
Source§impl Clone for ForeignInterfaceError
impl Clone for ForeignInterfaceError
Source§fn clone(&self) -> ForeignInterfaceError
fn clone(&self) -> ForeignInterfaceError
Returns a duplicate of the value. Read more
1.0.0 · 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 ForeignInterfaceError
impl Debug for ForeignInterfaceError
Source§impl From<ForeignInterfaceError> for NyarError
impl From<ForeignInterfaceError> for NyarError
Source§fn from(value: ForeignInterfaceError) -> Self
fn from(value: ForeignInterfaceError) -> Self
Converts to this type from the input type.
Source§impl Into<ReportKind> for ForeignInterfaceError
impl Into<ReportKind> for ForeignInterfaceError
Source§fn into(self) -> ReportKind
fn into(self) -> ReportKind
Converts this type into the (usually inferred) input type.
Source§impl Into<SyntaxError> for ForeignInterfaceError
impl Into<SyntaxError> for ForeignInterfaceError
Source§fn into(self) -> SyntaxError
fn into(self) -> SyntaxError
Converts this type into the (usually inferred) input type.
impl Copy for ForeignInterfaceError
Auto Trait Implementations§
impl Freeze for ForeignInterfaceError
impl RefUnwindSafe for ForeignInterfaceError
impl Send for ForeignInterfaceError
impl Sync for ForeignInterfaceError
impl Unpin for ForeignInterfaceError
impl UnwindSafe for ForeignInterfaceError
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