Struct llama_cpp_2::grammar::ExtraneousCharsAfterRule
source · pub struct ExtraneousCharsAfterRule {
pub name: String,
pub chars: String,
pub rest: String,
}
Expand description
Details of extraneous characters after a rule error.
Fields§
§name: String
The name of the rule being parsed
chars: String
the extraneous characters
rest: String
the rest of the input, this is still to be parsed.
Trait Implementations§
source§impl Debug for ExtraneousCharsAfterRule
impl Debug for ExtraneousCharsAfterRule
source§impl Display for ExtraneousCharsAfterRule
impl Display for ExtraneousCharsAfterRule
source§impl Error for ExtraneousCharsAfterRule
impl Error for ExtraneousCharsAfterRule
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
Auto Trait Implementations§
impl RefUnwindSafe for ExtraneousCharsAfterRule
impl Send for ExtraneousCharsAfterRule
impl Sync for ExtraneousCharsAfterRule
impl Unpin for ExtraneousCharsAfterRule
impl UnwindSafe for ExtraneousCharsAfterRule
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