pub enum ExpressionContextAll<'input> {
Show 24 variants
StructLiteralContext(StructLiteralContext<'input>),
ColumnReferenceAltContext(ColumnReferenceAltContext<'input>),
DerefContext(DerefContext<'input>),
NullLiteralContext(NullLiteralContext<'input>),
ArrayLiteralContext(ArrayLiteralContext<'input>),
PairLiteralContext(PairLiteralContext<'input>),
TsTruncContext(TsTruncContext<'input>),
RowsLiteralContext(RowsLiteralContext<'input>),
TsTruncTimestampLiteralContext(TsTruncTimestampLiteralContext<'input>),
UnaryPrefixOperatorContext(UnaryPrefixOperatorContext<'input>),
BinaryLiteralContext(BinaryLiteralContext<'input>),
IndexAccessContext(IndexAccessContext<'input>),
CastContext(CastContext<'input>),
UnaryPostfixOperatorContext(UnaryPostfixOperatorContext<'input>),
TupleLiteralContext(TupleLiteralContext<'input>),
ParenthesizedExpressionContext(ParenthesizedExpressionContext<'input>),
StringLiteralContext(StringLiteralContext<'input>),
BinaryOperatorContext(BinaryOperatorContext<'input>),
FunctionCallContext(FunctionCallContext<'input>),
UnboundRangeLiteralContext(UnboundRangeLiteralContext<'input>),
NumericLiteralContext(NumericLiteralContext<'input>),
BooleanLiteralContext(BooleanLiteralContext<'input>),
IntervalLiteralContext(IntervalLiteralContext<'input>),
Error(ExpressionContext<'input>),
}Variants§
StructLiteralContext(StructLiteralContext<'input>)
ColumnReferenceAltContext(ColumnReferenceAltContext<'input>)
DerefContext(DerefContext<'input>)
NullLiteralContext(NullLiteralContext<'input>)
ArrayLiteralContext(ArrayLiteralContext<'input>)
PairLiteralContext(PairLiteralContext<'input>)
TsTruncContext(TsTruncContext<'input>)
RowsLiteralContext(RowsLiteralContext<'input>)
TsTruncTimestampLiteralContext(TsTruncTimestampLiteralContext<'input>)
UnaryPrefixOperatorContext(UnaryPrefixOperatorContext<'input>)
BinaryLiteralContext(BinaryLiteralContext<'input>)
IndexAccessContext(IndexAccessContext<'input>)
CastContext(CastContext<'input>)
UnaryPostfixOperatorContext(UnaryPostfixOperatorContext<'input>)
TupleLiteralContext(TupleLiteralContext<'input>)
ParenthesizedExpressionContext(ParenthesizedExpressionContext<'input>)
StringLiteralContext(StringLiteralContext<'input>)
BinaryOperatorContext(BinaryOperatorContext<'input>)
FunctionCallContext(FunctionCallContext<'input>)
UnboundRangeLiteralContext(UnboundRangeLiteralContext<'input>)
NumericLiteralContext(NumericLiteralContext<'input>)
BooleanLiteralContext(BooleanLiteralContext<'input>)
IntervalLiteralContext(IntervalLiteralContext<'input>)
Error(ExpressionContext<'input>)
Trait Implementations§
Source§impl<'input> Debug for ExpressionContextAll<'input>
impl<'input> Debug for ExpressionContextAll<'input>
Source§impl<'input> Deref for ExpressionContextAll<'input>
impl<'input> Deref for ExpressionContextAll<'input>
Source§type Target = dyn ExpressionContextAttrs<'input, Ctx = HamelinParserContextType, TF = CommonTokenFactory>
type Target = dyn ExpressionContextAttrs<'input, Ctx = HamelinParserContextType, TF = CommonTokenFactory>
Source§impl<'input, 'a> Listenable<dyn HamelinListener<'input> + 'a> for ExpressionContextAll<'input>
impl<'input, 'a> Listenable<dyn HamelinListener<'input> + 'a> for ExpressionContextAll<'input>
Source§fn enter(&self, listener: &mut (dyn HamelinListener<'input> + 'a))
fn enter(&self, listener: &mut (dyn HamelinListener<'input> + 'a))
TSource§fn exit(&self, listener: &mut (dyn HamelinListener<'input> + 'a))
fn exit(&self, listener: &mut (dyn HamelinListener<'input> + 'a))
TSource§impl<'input, 'a> Visitable<dyn HamelinVisitor<'input> + 'a> for ExpressionContextAll<'input>
impl<'input, 'a> Visitable<dyn HamelinVisitor<'input> + 'a> for ExpressionContextAll<'input>
Source§fn accept(&self, visitor: &mut (dyn HamelinVisitor<'input> + 'a))
fn accept(&self, visitor: &mut (dyn HamelinVisitor<'input> + 'a))
Visimpl<'input> HamelinParserContext<'input> for ExpressionContextAll<'input>
impl<'a> TidAble<'a> for ExpressionContextAll<'a>
Auto Trait Implementations§
impl<'input> !Freeze for ExpressionContextAll<'input>
impl<'input> !RefUnwindSafe for ExpressionContextAll<'input>
impl<'input> !Send for ExpressionContextAll<'input>
impl<'input> !Sync for ExpressionContextAll<'input>
impl<'input> Unpin for ExpressionContextAll<'input>
impl<'input> !UnwindSafe for ExpressionContextAll<'input>
Blanket Implementations§
Source§impl<T> AnyExt for T
impl<T> AnyExt for T
Source§fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
T behind referenceSource§fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
T behind mutable referenceSource§fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
T behind Rc pointerSource§fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
T behind Arc pointerSource§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
Source§impl<T, X> CoerceTo<T> for Xwhere
T: CoerceFrom<X> + ?Sized,
impl<T, X> CoerceTo<T> for Xwhere
T: CoerceFrom<X> + ?Sized,
fn coerce_rc_to(self: Rc<X>) -> Rc<T>
fn coerce_box_to(self: Box<X>) -> Box<T>
fn coerce_ref_to(&self) -> &T
fn coerce_mut_to(&mut self) -> &mut T
Source§impl<'input, T, I> CustomRuleContext<'input> for Twhere
T: DerefSeal<Target = I> + 'input + Debug + Tid<'input>,
I: ParserRuleContext<'input> + 'input + ?Sized,
impl<'input, T, I> CustomRuleContext<'input> for Twhere
T: DerefSeal<Target = I> + 'input + Debug + Tid<'input>,
I: ParserRuleContext<'input> + 'input + ?Sized,
type TF = <I as CustomRuleContext<'input>>::TF
Source§type Ctx = <I as CustomRuleContext<'input>>::Ctx
type Ctx = <I as CustomRuleContext<'input>>::Ctx
Source§fn get_rule_index(&self) -> usize
fn get_rule_index(&self) -> usize
fn get_alt_number(&self) -> isize
fn set_alt_number(&self, _alt_number: isize)
Source§fn get_node_text(&self, rule_names: &[&str]) -> String
fn get_node_text(&self, rule_names: &[&str]) -> String
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);Source§impl<'input, T, I> ParseTree<'input> for Twhere
T: DerefSeal<Target = I> + 'input + Debug + Tid<'input>,
I: ParserRuleContext<'input> + 'input + ?Sized,
impl<'input, T, I> ParseTree<'input> for Twhere
T: DerefSeal<Target = I> + 'input + Debug + Tid<'input>,
I: ParserRuleContext<'input> + 'input + ?Sized,
Source§fn get_source_interval(&self) -> Interval
fn get_source_interval(&self) -> Interval
Source§impl<'input, T, I> ParserRuleContext<'input> for Twhere
T: DerefSeal<Target = I> + 'input + Debug + Tid<'input>,
I: ParserRuleContext<'input> + 'input + ?Sized,
impl<'input, T, I> ParserRuleContext<'input> for Twhere
T: DerefSeal<Target = I> + 'input + Debug + Tid<'input>,
I: ParserRuleContext<'input> + 'input + ?Sized,
fn set_exception(&self, e: ANTLRError)
fn set_start( &self, t: Option<<<T as CustomRuleContext<'input>>::TF as TokenFactory<'input>>::Tok>, )
Source§fn start<'a>(
&'a self,
) -> Ref<'a, <<T as CustomRuleContext<'input>>::TF as TokenFactory<'input>>::Inner>where
'input: 'a,
fn start<'a>(
&'a self,
) -> Ref<'a, <<T as CustomRuleContext<'input>>::TF as TokenFactory<'input>>::Inner>where
'input: 'a,
fn start_mut<'a>(
&'a self,
) -> RefMut<'a, <<T as CustomRuleContext<'input>>::TF as TokenFactory<'input>>::Tok>where
'input: 'a,
fn set_stop( &self, t: Option<<<T as CustomRuleContext<'input>>::TF as TokenFactory<'input>>::Tok>, )
Source§fn stop<'a>(
&'a self,
) -> Ref<'a, <<T as CustomRuleContext<'input>>::TF as TokenFactory<'input>>::Inner>where
'input: 'a,
fn stop<'a>(
&'a self,
) -> Ref<'a, <<T as CustomRuleContext<'input>>::TF as TokenFactory<'input>>::Inner>where
'input: 'a,
fn stop_mut<'a>(
&'a self,
) -> RefMut<'a, <<T as CustomRuleContext<'input>>::TF as TokenFactory<'input>>::Tok>where
'input: 'a,
fn add_child( &self, child: Rc<<<I as CustomRuleContext<'input>>::Ctx as ParserNodeType<'input>>::Type>, )
fn remove_last_child(&self)
fn child_of_type<T>(&self, pos: usize) -> Option<Rc<T>>
fn children_of_type<T>(&self) -> Vec<Rc<T>>
fn get_token( &self, ttype: isize, pos: usize, ) -> Option<Rc<LeafNode<'input, Self::Ctx, NoError>>>
fn get_tokens( &self, ttype: isize, ) -> Vec<Rc<LeafNode<'input, Self::Ctx, NoError>>>
Source§impl<'input, T, I> RuleContext<'input> for Twhere
T: DerefSeal<Target = I> + 'input + Debug + Tid<'input>,
I: ParserRuleContext<'input> + 'input + ?Sized,
impl<'input, T, I> RuleContext<'input> for Twhere
T: DerefSeal<Target = I> + 'input + Debug + Tid<'input>,
I: ParserRuleContext<'input> + 'input + ?Sized,
Source§fn get_invoking_state(&self) -> isize
fn get_invoking_state(&self) -> isize
Source§fn set_invoking_state(&self, t: isize)
fn set_invoking_state(&self, t: isize)
Source§fn is_empty(&self) -> bool
fn is_empty(&self) -> bool
Source§fn get_parent_ctx(
&self,
) -> Option<Rc<<<I as CustomRuleContext<'input>>::Ctx as ParserNodeType<'input>>::Type>>
fn get_parent_ctx( &self, ) -> Option<Rc<<<I as CustomRuleContext<'input>>::Ctx as ParserNodeType<'input>>::Type>>
Source§fn set_parent(
&self,
parent: &Option<Rc<<<I as CustomRuleContext<'input>>::Ctx as ParserNodeType<'input>>::Type>>,
)
fn set_parent( &self, parent: &Option<Rc<<<I as CustomRuleContext<'input>>::Ctx as ParserNodeType<'input>>::Type>>, )
Source§impl<'input, T> RuleContextExt<'input> for Twhere
T: ParserRuleContext<'input> + 'input + ?Sized,
impl<'input, T> RuleContextExt<'input> for Twhere
T: ParserRuleContext<'input> + 'input + ?Sized,
Source§fn to_string<Z>(
self: &Rc<T>,
rule_names: Option<&[&str]>,
stop: Option<Rc<Z>>,
) -> Stringwhere
Z: ParserRuleContext<'input, Ctx = <T as CustomRuleContext<'input>>::Ctx, TF = <T as CustomRuleContext<'input>>::TF> + 'input + ?Sized,
<T as CustomRuleContext<'input>>::Ctx: ParserNodeType<'input, Type = Z>,
T: CoerceTo<Z>,
fn to_string<Z>(
self: &Rc<T>,
rule_names: Option<&[&str]>,
stop: Option<Rc<Z>>,
) -> Stringwhere
Z: ParserRuleContext<'input, Ctx = <T as CustomRuleContext<'input>>::Ctx, TF = <T as CustomRuleContext<'input>>::TF> + 'input + ?Sized,
<T as CustomRuleContext<'input>>::Ctx: ParserNodeType<'input, Type = Z>,
T: CoerceTo<Z>,
fn accept_children<V>(&self, visitor: &mut V)where
V: ParseTreeVisitor<'input, <T as CustomRuleContext<'input>>::Ctx> + ?Sized,
<<T as CustomRuleContext<'input>>::Ctx as ParserNodeType<'input>>::Type: VisitableDyn<V>,
Source§impl<'a, T> Spannable for Twhere
T: ParserRuleContext<'a>,
impl<'a, T> Spannable for Twhere
T: ParserRuleContext<'a>,
Source§impl<'a, X> TidExt<'a> for X
impl<'a, X> TidExt<'a> for X
Source§fn is<T>(&self) -> boolwhere
T: Tid<'a>,
fn is<T>(&self) -> boolwhere
T: Tid<'a>,
Source§fn downcast_ref<'b, T>(&'b self) -> Option<&'b T>where
T: Tid<'a>,
fn downcast_ref<'b, T>(&'b self) -> Option<&'b T>where
T: Tid<'a>,
T behind referenceSource§fn downcast_mut<'b, T>(&'b mut self) -> Option<&'b mut T>where
T: Tid<'a>,
fn downcast_mut<'b, T>(&'b mut self) -> Option<&'b mut T>where
T: Tid<'a>,
T behind mutable referenceSource§fn downcast_rc<T>(self: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Tid<'a>,
fn downcast_rc<T>(self: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Tid<'a>,
T behind Rc pointerSource§fn downcast_arc<T>(self: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Tid<'a>,
fn downcast_arc<T>(self: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Tid<'a>,
T behind Arc pointer