Struct jj_cli::template_parser::TemplateParseError
source · pub struct TemplateParseError { /* private fields */ }Implementations§
source§impl TemplateParseError
impl TemplateParseError
pub fn with_span(kind: TemplateParseErrorKind, span: Span<'_>) -> Self
pub fn with_span_and_origin( kind: TemplateParseErrorKind, span: Span<'_>, origin: Self ) -> Self
pub fn no_such_keyword(name: impl Into<String>, span: Span<'_>) -> Self
pub fn no_such_function(function: &FunctionCallNode<'_>) -> Self
pub fn no_such_method( type_name: impl Into<String>, function: &FunctionCallNode<'_> ) -> Self
pub fn invalid_arguments( function: &FunctionCallNode<'_>, message: impl Into<String> ) -> Self
pub fn expected_type(type_name: &str, span: Span<'_>) -> Self
pub fn unexpected_expression(message: impl Into<String>, span: Span<'_>) -> Self
pub fn within_alias_expansion( self, id: TemplateAliasId<'_>, span: Span<'_> ) -> Self
Trait Implementations§
source§impl Clone for TemplateParseError
impl Clone for TemplateParseError
source§fn clone(&self) -> TemplateParseError
fn clone(&self) -> TemplateParseError
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 TemplateParseError
impl Debug for TemplateParseError
source§impl Display for TemplateParseError
impl Display for TemplateParseError
source§impl Error for TemplateParseError
impl Error for TemplateParseError
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()
source§impl From<TemplateParseError> for CommandError
impl From<TemplateParseError> for CommandError
source§fn from(err: TemplateParseError) -> Self
fn from(err: TemplateParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for TemplateParseError
impl Send for TemplateParseError
impl Sync for TemplateParseError
impl Unpin for TemplateParseError
impl UnwindSafe for TemplateParseError
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