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