pub struct LinkerError {
pub pdu: Option<String>,
pub details: String,
pub kind: LinkerErrorType,
}
Fields§
§pdu: Option<String>
§details: String
§kind: LinkerErrorType
Implementations§
Source§impl LinkerError
impl LinkerError
pub fn new(pdu: Option<String>, details: &str, kind: LinkerErrorType) -> Self
pub fn contextualize(&mut self, pdu: &str)
Trait Implementations§
Source§impl Clone for LinkerError
impl Clone for LinkerError
Source§fn clone(&self) -> LinkerError
fn clone(&self) -> LinkerError
Returns a copy 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 LinkerError
impl Debug for LinkerError
Source§impl Display for LinkerError
impl Display for LinkerError
Source§impl Error for LinkerError
impl Error for LinkerError
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<GrammarError> for LinkerError
impl From<GrammarError> for LinkerError
Source§fn from(value: GrammarError) -> Self
fn from(value: GrammarError) -> Self
Converts to this type from the input type.
Source§impl From<LinkerError> for CompilerError
impl From<LinkerError> for CompilerError
Source§fn from(value: LinkerError) -> Self
fn from(value: LinkerError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LinkerError
impl PartialEq for LinkerError
impl StructuralPartialEq for LinkerError
Auto Trait Implementations§
impl Freeze for LinkerError
impl RefUnwindSafe for LinkerError
impl Send for LinkerError
impl Sync for LinkerError
impl Unpin for LinkerError
impl UnwindSafe for LinkerError
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)