pub struct NoSuchVariable {
pub position: usize,
pub name: String,
}Expand description
The input string contains a placeholder for a variable that is not in the variable map.
Fields§
§position: usizeThe byte offset within the input where the error occurs.
This points to the first character of the name in the input text.
name: StringThe name of the variable.
Trait Implementations§
Source§impl Clone for NoSuchVariable
impl Clone for NoSuchVariable
Source§fn clone(&self) -> NoSuchVariable
fn clone(&self) -> NoSuchVariable
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 NoSuchVariable
impl Debug for NoSuchVariable
Source§impl Display for NoSuchVariable
impl Display for NoSuchVariable
Source§impl Error for NoSuchVariable
impl Error for NoSuchVariable
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<NoSuchVariable> for Error
impl From<NoSuchVariable> for Error
Source§fn from(other: NoSuchVariable) -> Self
fn from(other: NoSuchVariable) -> Self
Converts to this type from the input type.
Source§impl From<NoSuchVariable> for ExpandError
impl From<NoSuchVariable> for ExpandError
Source§fn from(other: NoSuchVariable) -> Self
fn from(other: NoSuchVariable) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NoSuchVariable
impl RefUnwindSafe for NoSuchVariable
impl Send for NoSuchVariable
impl Sync for NoSuchVariable
impl Unpin for NoSuchVariable
impl UnwindSafe for NoSuchVariable
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