pub struct ProgramError {
pub line: usize,
pub key: &'static str,
pub detail: String,
}Expand description
A line of a program that cannot be read: its number (from 1), a translation key and the word or detail.
Fields§
§line: usize§key: &'static str§detail: StringTrait Implementations§
Source§impl Clone for ProgramError
impl Clone for ProgramError
Source§fn clone(&self) -> ProgramError
fn clone(&self) -> ProgramError
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 ProgramError
impl Debug for ProgramError
Source§impl PartialEq for ProgramError
impl PartialEq for ProgramError
Source§fn eq(&self, other: &ProgramError) -> bool
fn eq(&self, other: &ProgramError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProgramError
Auto Trait Implementations§
impl Freeze for ProgramError
impl RefUnwindSafe for ProgramError
impl Send for ProgramError
impl Sync for ProgramError
impl Unpin for ProgramError
impl UnsafeUnpin for ProgramError
impl UnwindSafe for ProgramError
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