pub struct CommandSyntaxError { /* private fields */ }
Implementations§
Source§impl CommandSyntaxError
impl CommandSyntaxError
pub fn new( kind: BuiltInError, message: String, input: &str, cursor: usize, ) -> Self
pub fn create(kind: BuiltInError, message: String) -> Self
pub fn message(&self) -> String
pub fn raw_message(&self) -> &String
pub fn context(&self) -> Option<String>
pub fn kind(&self) -> &BuiltInError
pub fn input(&self) -> &Option<String>
pub fn cursor(&self) -> Option<usize>
Trait Implementations§
Source§impl Clone for CommandSyntaxError
impl Clone for CommandSyntaxError
Source§fn clone(&self) -> CommandSyntaxError
fn clone(&self) -> CommandSyntaxError
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 CommandSyntaxError
impl Debug for CommandSyntaxError
Source§impl PartialEq for CommandSyntaxError
impl PartialEq for CommandSyntaxError
impl StructuralPartialEq for CommandSyntaxError
Auto Trait Implementations§
impl Freeze for CommandSyntaxError
impl RefUnwindSafe for CommandSyntaxError
impl Send for CommandSyntaxError
impl Sync for CommandSyntaxError
impl Unpin for CommandSyntaxError
impl UnwindSafe for CommandSyntaxError
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