pub struct DuplicateVarName {
pub name: String,
pub present_var: VarNo,
pub added_vars: Range<VarNo>,
}
Expand description
Error details for labelling a variable with a name that is already in use
Fields§
§name: String
The variable name
present_var: VarNo
Variable number already using the name
added_vars: Range<VarNo>
Range of variables that have been successfully added before the error occurred
Trait Implementations§
Source§impl Clone for DuplicateVarName
impl Clone for DuplicateVarName
Source§fn clone(&self) -> DuplicateVarName
fn clone(&self) -> DuplicateVarName
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 DuplicateVarName
impl Debug for DuplicateVarName
Source§impl Display for DuplicateVarName
impl Display for DuplicateVarName
Source§impl Hash for DuplicateVarName
impl Hash for DuplicateVarName
Source§impl PartialEq for DuplicateVarName
impl PartialEq for DuplicateVarName
impl Eq for DuplicateVarName
impl StructuralPartialEq for DuplicateVarName
Auto Trait Implementations§
impl Freeze for DuplicateVarName
impl RefUnwindSafe for DuplicateVarName
impl Send for DuplicateVarName
impl Sync for DuplicateVarName
impl Unpin for DuplicateVarName
impl UnwindSafe for DuplicateVarName
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