pub enum ExpressionWithoutBlockInner {
Show 22 variants
DoYeet(DoYeetExpression),
Literal(LiteralExpression),
Operator(OperatorExpression),
Grouped(GroupedExpression),
Index(IndexExpression),
Range(RangeExpression),
MacroInvocation(MacroInvocation),
MethodCall(MethodCallExpression),
Call(CallExpression),
Field(FieldExpression),
TupleIndexing(TupleIndexingExpression),
Await(AwaitExpression),
Tuple(TupleExpression),
Return(ReturnExpression),
Closure(ClosureExpression),
Struct(StructExpression),
Array(ArrayExpression),
Path(PathExpression),
Underscore(UnderscoreExpression),
Continue(ContinueExpression),
Break(BreakExpression),
AsyncBlock(AsyncBlockExpression),
}Variants§
DoYeet(DoYeetExpression)
Literal(LiteralExpression)
Operator(OperatorExpression)
Grouped(GroupedExpression)
Index(IndexExpression)
Range(RangeExpression)
MacroInvocation(MacroInvocation)
MethodCall(MethodCallExpression)
Call(CallExpression)
Field(FieldExpression)
TupleIndexing(TupleIndexingExpression)
Await(AwaitExpression)
Tuple(TupleExpression)
Return(ReturnExpression)
Closure(ClosureExpression)
Struct(StructExpression)
Array(ArrayExpression)
Path(PathExpression)
Underscore(UnderscoreExpression)
Continue(ContinueExpression)
Break(BreakExpression)
AsyncBlock(AsyncBlockExpression)
Implementations§
Source§impl ExpressionWithoutBlockInner
impl ExpressionWithoutBlockInner
pub fn try_as_do_yeet(self) -> Option<DoYeetExpression>
pub const fn try_as_do_yeet_ref(&self) -> Option<&DoYeetExpression>
pub fn try_as_do_yeet_mut(&mut self) -> Option<&mut DoYeetExpression>
pub fn try_as_literal(self) -> Option<LiteralExpression>
pub const fn try_as_literal_ref(&self) -> Option<&LiteralExpression>
pub fn try_as_literal_mut(&mut self) -> Option<&mut LiteralExpression>
pub fn try_as_operator(self) -> Option<OperatorExpression>
pub const fn try_as_operator_ref(&self) -> Option<&OperatorExpression>
pub fn try_as_operator_mut(&mut self) -> Option<&mut OperatorExpression>
pub fn try_as_grouped(self) -> Option<GroupedExpression>
pub const fn try_as_grouped_ref(&self) -> Option<&GroupedExpression>
pub fn try_as_grouped_mut(&mut self) -> Option<&mut GroupedExpression>
pub fn try_as_index(self) -> Option<IndexExpression>
pub const fn try_as_index_ref(&self) -> Option<&IndexExpression>
pub fn try_as_index_mut(&mut self) -> Option<&mut IndexExpression>
pub fn try_as_range(self) -> Option<RangeExpression>
pub const fn try_as_range_ref(&self) -> Option<&RangeExpression>
pub fn try_as_range_mut(&mut self) -> Option<&mut RangeExpression>
pub fn try_as_macro_invocation(self) -> Option<MacroInvocation>
pub const fn try_as_macro_invocation_ref(&self) -> Option<&MacroInvocation>
pub fn try_as_macro_invocation_mut(&mut self) -> Option<&mut MacroInvocation>
pub fn try_as_method_call(self) -> Option<MethodCallExpression>
pub const fn try_as_method_call_ref(&self) -> Option<&MethodCallExpression>
pub fn try_as_method_call_mut(&mut self) -> Option<&mut MethodCallExpression>
pub fn try_as_call(self) -> Option<CallExpression>
pub const fn try_as_call_ref(&self) -> Option<&CallExpression>
pub fn try_as_call_mut(&mut self) -> Option<&mut CallExpression>
pub fn try_as_field(self) -> Option<FieldExpression>
pub const fn try_as_field_ref(&self) -> Option<&FieldExpression>
pub fn try_as_field_mut(&mut self) -> Option<&mut FieldExpression>
pub fn try_as_tuple_indexing(self) -> Option<TupleIndexingExpression>
pub const fn try_as_tuple_indexing_ref( &self, ) -> Option<&TupleIndexingExpression>
pub fn try_as_tuple_indexing_mut( &mut self, ) -> Option<&mut TupleIndexingExpression>
pub fn try_as_await(self) -> Option<AwaitExpression>
pub const fn try_as_await_ref(&self) -> Option<&AwaitExpression>
pub fn try_as_await_mut(&mut self) -> Option<&mut AwaitExpression>
pub fn try_as_tuple(self) -> Option<TupleExpression>
pub const fn try_as_tuple_ref(&self) -> Option<&TupleExpression>
pub fn try_as_tuple_mut(&mut self) -> Option<&mut TupleExpression>
pub fn try_as_return(self) -> Option<ReturnExpression>
pub const fn try_as_return_ref(&self) -> Option<&ReturnExpression>
pub fn try_as_return_mut(&mut self) -> Option<&mut ReturnExpression>
pub fn try_as_closure(self) -> Option<ClosureExpression>
pub const fn try_as_closure_ref(&self) -> Option<&ClosureExpression>
pub fn try_as_closure_mut(&mut self) -> Option<&mut ClosureExpression>
pub fn try_as_struct(self) -> Option<StructExpression>
pub const fn try_as_struct_ref(&self) -> Option<&StructExpression>
pub fn try_as_struct_mut(&mut self) -> Option<&mut StructExpression>
pub fn try_as_array(self) -> Option<ArrayExpression>
pub const fn try_as_array_ref(&self) -> Option<&ArrayExpression>
pub fn try_as_array_mut(&mut self) -> Option<&mut ArrayExpression>
pub fn try_as_path(self) -> Option<PathExpression>
pub const fn try_as_path_ref(&self) -> Option<&PathExpression>
pub fn try_as_path_mut(&mut self) -> Option<&mut PathExpression>
pub fn try_as_underscore(self) -> Option<UnderscoreExpression>
pub const fn try_as_underscore_ref(&self) -> Option<&UnderscoreExpression>
pub fn try_as_underscore_mut(&mut self) -> Option<&mut UnderscoreExpression>
pub fn try_as_continue(self) -> Option<ContinueExpression>
pub const fn try_as_continue_ref(&self) -> Option<&ContinueExpression>
pub fn try_as_continue_mut(&mut self) -> Option<&mut ContinueExpression>
pub fn try_as_break(self) -> Option<BreakExpression>
pub const fn try_as_break_ref(&self) -> Option<&BreakExpression>
pub fn try_as_break_mut(&mut self) -> Option<&mut BreakExpression>
pub fn try_as_async_block(self) -> Option<AsyncBlockExpression>
pub const fn try_as_async_block_ref(&self) -> Option<&AsyncBlockExpression>
pub fn try_as_async_block_mut(&mut self) -> Option<&mut AsyncBlockExpression>
Trait Implementations§
Source§impl Clone for ExpressionWithoutBlockInner
impl Clone for ExpressionWithoutBlockInner
Source§fn clone(&self) -> ExpressionWithoutBlockInner
fn clone(&self) -> ExpressionWithoutBlockInner
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 ExpressionWithoutBlockInner
impl Debug for ExpressionWithoutBlockInner
Source§impl<'de> Deserialize<'de> for ExpressionWithoutBlockInner
impl<'de> Deserialize<'de> for ExpressionWithoutBlockInner
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Format<WhitespaceConfig, ()> for ExpressionWithoutBlockInner
impl Format<WhitespaceConfig, ()> for ExpressionWithoutBlockInner
Source§fn format(
&mut self,
ctx: &mut Context<'_>,
prefix_ws: WhitespaceConfig,
args: (),
) -> FormatOutput
fn format( &mut self, ctx: &mut Context<'_>, prefix_ws: WhitespaceConfig, args: (), ) -> FormatOutput
Formats this type.
Source§impl Formattable for ExpressionWithoutBlockInner
impl Formattable for ExpressionWithoutBlockInner
Source§fn with_prefix_ws<WITH_PREFIX_WS_O>(
&mut self,
ctx: &mut Context<'_>,
f: &mut impl FnMut(&mut Whitespace, &mut Context<'_>) -> WITH_PREFIX_WS_O,
) -> Result<WITH_PREFIX_WS_O, ControlFlow<()>>
fn with_prefix_ws<WITH_PREFIX_WS_O>( &mut self, ctx: &mut Context<'_>, f: &mut impl FnMut(&mut Whitespace, &mut Context<'_>) -> WITH_PREFIX_WS_O, ) -> Result<WITH_PREFIX_WS_O, ControlFlow<()>>
Accesses the prefix whitespace of this type. Read more
Source§fn with_strings<WITH_STRINGS_O>(
&mut self,
ctx: &mut Context<'_>,
exclude_prefix_ws: bool,
f: &mut impl FnMut(&mut AstStr, &mut Context<'_>) -> ControlFlow<WITH_STRINGS_O>,
) -> ControlFlow<WITH_STRINGS_O, bool>
fn with_strings<WITH_STRINGS_O>( &mut self, ctx: &mut Context<'_>, exclude_prefix_ws: bool, f: &mut impl FnMut(&mut AstStr, &mut Context<'_>) -> ControlFlow<WITH_STRINGS_O>, ) -> ControlFlow<WITH_STRINGS_O, bool>
Iterates over all strings in this type. Read more
Source§fn format_output(&mut self, ctx: &mut Context<'_>) -> FormatOutput
fn format_output(&mut self, ctx: &mut Context<'_>) -> FormatOutput
Returns the formatting output for this type, without formatting it.
Source§fn prefix_ws_is_pure(&mut self, ctx: &mut Context<'_>) -> Option<bool>
fn prefix_ws_is_pure(&mut self, ctx: &mut Context<'_>) -> Option<bool>
Returns if the prefix whitespace is pure.
Source§fn prefix_ws_join_prefix(
&mut self,
ctx: &mut Context<'_>,
ws: Whitespace,
) -> Result<(), Whitespace>
fn prefix_ws_join_prefix( &mut self, ctx: &mut Context<'_>, ws: Whitespace, ) -> Result<(), Whitespace>
Joins a string as a prefix onto the prefix whitespace of this type.
Source§impl From<ArrayExpression> for ExpressionWithoutBlockInner
impl From<ArrayExpression> for ExpressionWithoutBlockInner
Source§fn from(value: ArrayExpression) -> Self
fn from(value: ArrayExpression) -> Self
Converts to this type from the input type.
Source§impl From<AsyncBlockExpression> for ExpressionWithoutBlockInner
impl From<AsyncBlockExpression> for ExpressionWithoutBlockInner
Source§fn from(value: AsyncBlockExpression) -> Self
fn from(value: AsyncBlockExpression) -> Self
Converts to this type from the input type.
Source§impl From<AwaitExpression> for ExpressionWithoutBlockInner
impl From<AwaitExpression> for ExpressionWithoutBlockInner
Source§fn from(value: AwaitExpression) -> Self
fn from(value: AwaitExpression) -> Self
Converts to this type from the input type.
Source§impl From<BreakExpression> for ExpressionWithoutBlockInner
impl From<BreakExpression> for ExpressionWithoutBlockInner
Source§fn from(value: BreakExpression) -> Self
fn from(value: BreakExpression) -> Self
Converts to this type from the input type.
Source§impl From<CallExpression> for ExpressionWithoutBlockInner
impl From<CallExpression> for ExpressionWithoutBlockInner
Source§fn from(value: CallExpression) -> Self
fn from(value: CallExpression) -> Self
Converts to this type from the input type.
Source§impl From<ClosureExpression> for ExpressionWithoutBlockInner
impl From<ClosureExpression> for ExpressionWithoutBlockInner
Source§fn from(value: ClosureExpression) -> Self
fn from(value: ClosureExpression) -> Self
Converts to this type from the input type.
Source§impl From<ContinueExpression> for ExpressionWithoutBlockInner
impl From<ContinueExpression> for ExpressionWithoutBlockInner
Source§fn from(value: ContinueExpression) -> Self
fn from(value: ContinueExpression) -> Self
Converts to this type from the input type.
Source§impl From<DoYeetExpression> for ExpressionWithoutBlockInner
impl From<DoYeetExpression> for ExpressionWithoutBlockInner
Source§fn from(value: DoYeetExpression) -> Self
fn from(value: DoYeetExpression) -> Self
Converts to this type from the input type.
Source§impl From<ExpressionWithoutBlockInner> for ExpressionWithoutBlock
impl From<ExpressionWithoutBlockInner> for ExpressionWithoutBlock
Source§fn from(expr: ExpressionWithoutBlockInner) -> Self
fn from(expr: ExpressionWithoutBlockInner) -> Self
Converts to this type from the input type.
Source§impl From<FieldExpression> for ExpressionWithoutBlockInner
impl From<FieldExpression> for ExpressionWithoutBlockInner
Source§fn from(value: FieldExpression) -> Self
fn from(value: FieldExpression) -> Self
Converts to this type from the input type.
Source§impl From<GroupedExpression> for ExpressionWithoutBlockInner
impl From<GroupedExpression> for ExpressionWithoutBlockInner
Source§fn from(value: GroupedExpression) -> Self
fn from(value: GroupedExpression) -> Self
Converts to this type from the input type.
Source§impl From<IndexExpression> for ExpressionWithoutBlockInner
impl From<IndexExpression> for ExpressionWithoutBlockInner
Source§fn from(value: IndexExpression) -> Self
fn from(value: IndexExpression) -> Self
Converts to this type from the input type.
Source§impl From<LiteralExpression> for ExpressionWithoutBlockInner
impl From<LiteralExpression> for ExpressionWithoutBlockInner
Source§fn from(value: LiteralExpression) -> Self
fn from(value: LiteralExpression) -> Self
Converts to this type from the input type.
Source§impl From<MacroInvocation> for ExpressionWithoutBlockInner
impl From<MacroInvocation> for ExpressionWithoutBlockInner
Source§fn from(value: MacroInvocation) -> Self
fn from(value: MacroInvocation) -> Self
Converts to this type from the input type.
Source§impl From<MethodCallExpression> for ExpressionWithoutBlockInner
impl From<MethodCallExpression> for ExpressionWithoutBlockInner
Source§fn from(value: MethodCallExpression) -> Self
fn from(value: MethodCallExpression) -> Self
Converts to this type from the input type.
Source§impl From<OperatorExpression> for ExpressionWithoutBlockInner
impl From<OperatorExpression> for ExpressionWithoutBlockInner
Source§fn from(value: OperatorExpression) -> Self
fn from(value: OperatorExpression) -> Self
Converts to this type from the input type.
Source§impl From<PathExpression> for ExpressionWithoutBlockInner
impl From<PathExpression> for ExpressionWithoutBlockInner
Source§fn from(value: PathExpression) -> Self
fn from(value: PathExpression) -> Self
Converts to this type from the input type.
Source§impl From<RangeExpression> for ExpressionWithoutBlockInner
impl From<RangeExpression> for ExpressionWithoutBlockInner
Source§fn from(value: RangeExpression) -> Self
fn from(value: RangeExpression) -> Self
Converts to this type from the input type.
Source§impl From<ReturnExpression> for ExpressionWithoutBlockInner
impl From<ReturnExpression> for ExpressionWithoutBlockInner
Source§fn from(value: ReturnExpression) -> Self
fn from(value: ReturnExpression) -> Self
Converts to this type from the input type.
Source§impl From<StructExpression> for ExpressionWithoutBlockInner
impl From<StructExpression> for ExpressionWithoutBlockInner
Source§fn from(value: StructExpression) -> Self
fn from(value: StructExpression) -> Self
Converts to this type from the input type.
Source§impl From<TupleExpression> for ExpressionWithoutBlockInner
impl From<TupleExpression> for ExpressionWithoutBlockInner
Source§fn from(value: TupleExpression) -> Self
fn from(value: TupleExpression) -> Self
Converts to this type from the input type.
Source§impl From<TupleIndexingExpression> for ExpressionWithoutBlockInner
impl From<TupleIndexingExpression> for ExpressionWithoutBlockInner
Source§fn from(value: TupleIndexingExpression) -> Self
fn from(value: TupleIndexingExpression) -> Self
Converts to this type from the input type.
Source§impl From<UnderscoreExpression> for ExpressionWithoutBlockInner
impl From<UnderscoreExpression> for ExpressionWithoutBlockInner
Source§fn from(value: UnderscoreExpression) -> Self
fn from(value: UnderscoreExpression) -> Self
Converts to this type from the input type.
Source§impl IntoRecursiveRoot<ExpressionInner> for ExpressionWithoutBlockInner
impl IntoRecursiveRoot<ExpressionInner> for ExpressionWithoutBlockInner
fn into_recursive_root(self, parser: &mut Parser) -> ExpressionInner
Source§impl ParsableRecursive<ExpressionInner> for ExpressionWithoutBlockInner
impl ParsableRecursive<ExpressionInner> for ExpressionWithoutBlockInner
Source§type Suffix = ExpressionWithoutBlockInnerSuffix
type Suffix = ExpressionWithoutBlockInnerSuffix
The suffix for this type
Source§type Prefix = ExpressionWithoutBlockInnerPrefix
type Prefix = ExpressionWithoutBlockInnerPrefix
The prefix for this type
Source§type Infix = ExpressionWithoutBlockInnerInfix
type Infix = ExpressionWithoutBlockInnerInfix
The infix of this type
Source§type Base = ExpressionWithoutBlockInnerBase
type Base = ExpressionWithoutBlockInnerBase
Base type
Source§fn join_suffix(
root: ExpressionInner,
suffix: Self::Suffix,
parser: &mut Parser,
) -> Self
fn join_suffix( root: ExpressionInner, suffix: Self::Suffix, parser: &mut Parser, ) -> Self
Creates this type from it’s parts
Source§fn join_prefix(
prefix: Self::Prefix,
root: ExpressionInner,
parser: &mut Parser,
) -> Self
fn join_prefix( prefix: Self::Prefix, root: ExpressionInner, parser: &mut Parser, ) -> Self
Creates this type from it’s parts
Source§fn join_infix(
lhs: ExpressionInner,
infix: Self::Infix,
rhs: ExpressionInner,
parser: &mut Parser,
) -> Self
fn join_infix( lhs: ExpressionInner, infix: Self::Infix, rhs: ExpressionInner, parser: &mut Parser, ) -> Self
Creates this type from it’s parts
Source§impl Print for ExpressionWithoutBlockInner
impl Print for ExpressionWithoutBlockInner
Source§fn print_non_ws(&self, f: &mut PrintFmt)
fn print_non_ws(&self, f: &mut PrintFmt)
Prints this type onto a writer excluding whitespace Read more
Source§impl TryFrom<ExpressionWithoutBlockInner> for ArrayExpression
impl TryFrom<ExpressionWithoutBlockInner> for ArrayExpression
Source§type Error = TryIntoError<ExpressionWithoutBlockInner>
type Error = TryIntoError<ExpressionWithoutBlockInner>
The type returned in the event of a conversion error.
Source§fn try_from(
value: ExpressionWithoutBlockInner,
) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
fn try_from( value: ExpressionWithoutBlockInner, ) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
Performs the conversion.
Source§impl TryFrom<ExpressionWithoutBlockInner> for AsyncBlockExpression
impl TryFrom<ExpressionWithoutBlockInner> for AsyncBlockExpression
Source§type Error = TryIntoError<ExpressionWithoutBlockInner>
type Error = TryIntoError<ExpressionWithoutBlockInner>
The type returned in the event of a conversion error.
Source§fn try_from(
value: ExpressionWithoutBlockInner,
) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
fn try_from( value: ExpressionWithoutBlockInner, ) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
Performs the conversion.
Source§impl TryFrom<ExpressionWithoutBlockInner> for AwaitExpression
impl TryFrom<ExpressionWithoutBlockInner> for AwaitExpression
Source§type Error = TryIntoError<ExpressionWithoutBlockInner>
type Error = TryIntoError<ExpressionWithoutBlockInner>
The type returned in the event of a conversion error.
Source§fn try_from(
value: ExpressionWithoutBlockInner,
) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
fn try_from( value: ExpressionWithoutBlockInner, ) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
Performs the conversion.
Source§impl TryFrom<ExpressionWithoutBlockInner> for BreakExpression
impl TryFrom<ExpressionWithoutBlockInner> for BreakExpression
Source§type Error = TryIntoError<ExpressionWithoutBlockInner>
type Error = TryIntoError<ExpressionWithoutBlockInner>
The type returned in the event of a conversion error.
Source§fn try_from(
value: ExpressionWithoutBlockInner,
) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
fn try_from( value: ExpressionWithoutBlockInner, ) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
Performs the conversion.
Source§impl TryFrom<ExpressionWithoutBlockInner> for CallExpression
impl TryFrom<ExpressionWithoutBlockInner> for CallExpression
Source§type Error = TryIntoError<ExpressionWithoutBlockInner>
type Error = TryIntoError<ExpressionWithoutBlockInner>
The type returned in the event of a conversion error.
Source§fn try_from(
value: ExpressionWithoutBlockInner,
) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
fn try_from( value: ExpressionWithoutBlockInner, ) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
Performs the conversion.
Source§impl TryFrom<ExpressionWithoutBlockInner> for ClosureExpression
impl TryFrom<ExpressionWithoutBlockInner> for ClosureExpression
Source§type Error = TryIntoError<ExpressionWithoutBlockInner>
type Error = TryIntoError<ExpressionWithoutBlockInner>
The type returned in the event of a conversion error.
Source§fn try_from(
value: ExpressionWithoutBlockInner,
) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
fn try_from( value: ExpressionWithoutBlockInner, ) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
Performs the conversion.
Source§impl TryFrom<ExpressionWithoutBlockInner> for ContinueExpression
impl TryFrom<ExpressionWithoutBlockInner> for ContinueExpression
Source§type Error = TryIntoError<ExpressionWithoutBlockInner>
type Error = TryIntoError<ExpressionWithoutBlockInner>
The type returned in the event of a conversion error.
Source§fn try_from(
value: ExpressionWithoutBlockInner,
) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
fn try_from( value: ExpressionWithoutBlockInner, ) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
Performs the conversion.
Source§impl TryFrom<ExpressionWithoutBlockInner> for DoYeetExpression
impl TryFrom<ExpressionWithoutBlockInner> for DoYeetExpression
Source§type Error = TryIntoError<ExpressionWithoutBlockInner>
type Error = TryIntoError<ExpressionWithoutBlockInner>
The type returned in the event of a conversion error.
Source§fn try_from(
value: ExpressionWithoutBlockInner,
) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
fn try_from( value: ExpressionWithoutBlockInner, ) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
Performs the conversion.
Source§impl TryFrom<ExpressionWithoutBlockInner> for FieldExpression
impl TryFrom<ExpressionWithoutBlockInner> for FieldExpression
Source§type Error = TryIntoError<ExpressionWithoutBlockInner>
type Error = TryIntoError<ExpressionWithoutBlockInner>
The type returned in the event of a conversion error.
Source§fn try_from(
value: ExpressionWithoutBlockInner,
) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
fn try_from( value: ExpressionWithoutBlockInner, ) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
Performs the conversion.
Source§impl TryFrom<ExpressionWithoutBlockInner> for GroupedExpression
impl TryFrom<ExpressionWithoutBlockInner> for GroupedExpression
Source§type Error = TryIntoError<ExpressionWithoutBlockInner>
type Error = TryIntoError<ExpressionWithoutBlockInner>
The type returned in the event of a conversion error.
Source§fn try_from(
value: ExpressionWithoutBlockInner,
) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
fn try_from( value: ExpressionWithoutBlockInner, ) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
Performs the conversion.
Source§impl TryFrom<ExpressionWithoutBlockInner> for IndexExpression
impl TryFrom<ExpressionWithoutBlockInner> for IndexExpression
Source§type Error = TryIntoError<ExpressionWithoutBlockInner>
type Error = TryIntoError<ExpressionWithoutBlockInner>
The type returned in the event of a conversion error.
Source§fn try_from(
value: ExpressionWithoutBlockInner,
) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
fn try_from( value: ExpressionWithoutBlockInner, ) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
Performs the conversion.
Source§impl TryFrom<ExpressionWithoutBlockInner> for LiteralExpression
impl TryFrom<ExpressionWithoutBlockInner> for LiteralExpression
Source§type Error = TryIntoError<ExpressionWithoutBlockInner>
type Error = TryIntoError<ExpressionWithoutBlockInner>
The type returned in the event of a conversion error.
Source§fn try_from(
value: ExpressionWithoutBlockInner,
) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
fn try_from( value: ExpressionWithoutBlockInner, ) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
Performs the conversion.
Source§impl TryFrom<ExpressionWithoutBlockInner> for MacroInvocation
impl TryFrom<ExpressionWithoutBlockInner> for MacroInvocation
Source§type Error = TryIntoError<ExpressionWithoutBlockInner>
type Error = TryIntoError<ExpressionWithoutBlockInner>
The type returned in the event of a conversion error.
Source§fn try_from(
value: ExpressionWithoutBlockInner,
) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
fn try_from( value: ExpressionWithoutBlockInner, ) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
Performs the conversion.
Source§impl TryFrom<ExpressionWithoutBlockInner> for MethodCallExpression
impl TryFrom<ExpressionWithoutBlockInner> for MethodCallExpression
Source§type Error = TryIntoError<ExpressionWithoutBlockInner>
type Error = TryIntoError<ExpressionWithoutBlockInner>
The type returned in the event of a conversion error.
Source§fn try_from(
value: ExpressionWithoutBlockInner,
) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
fn try_from( value: ExpressionWithoutBlockInner, ) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
Performs the conversion.
Source§impl TryFrom<ExpressionWithoutBlockInner> for OperatorExpression
impl TryFrom<ExpressionWithoutBlockInner> for OperatorExpression
Source§type Error = TryIntoError<ExpressionWithoutBlockInner>
type Error = TryIntoError<ExpressionWithoutBlockInner>
The type returned in the event of a conversion error.
Source§fn try_from(
value: ExpressionWithoutBlockInner,
) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
fn try_from( value: ExpressionWithoutBlockInner, ) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
Performs the conversion.
Source§impl TryFrom<ExpressionWithoutBlockInner> for PathExpression
impl TryFrom<ExpressionWithoutBlockInner> for PathExpression
Source§type Error = TryIntoError<ExpressionWithoutBlockInner>
type Error = TryIntoError<ExpressionWithoutBlockInner>
The type returned in the event of a conversion error.
Source§fn try_from(
value: ExpressionWithoutBlockInner,
) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
fn try_from( value: ExpressionWithoutBlockInner, ) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
Performs the conversion.
Source§impl TryFrom<ExpressionWithoutBlockInner> for RangeExpression
impl TryFrom<ExpressionWithoutBlockInner> for RangeExpression
Source§type Error = TryIntoError<ExpressionWithoutBlockInner>
type Error = TryIntoError<ExpressionWithoutBlockInner>
The type returned in the event of a conversion error.
Source§fn try_from(
value: ExpressionWithoutBlockInner,
) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
fn try_from( value: ExpressionWithoutBlockInner, ) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
Performs the conversion.
Source§impl TryFrom<ExpressionWithoutBlockInner> for ReturnExpression
impl TryFrom<ExpressionWithoutBlockInner> for ReturnExpression
Source§type Error = TryIntoError<ExpressionWithoutBlockInner>
type Error = TryIntoError<ExpressionWithoutBlockInner>
The type returned in the event of a conversion error.
Source§fn try_from(
value: ExpressionWithoutBlockInner,
) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
fn try_from( value: ExpressionWithoutBlockInner, ) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
Performs the conversion.
Source§impl TryFrom<ExpressionWithoutBlockInner> for StructExpression
impl TryFrom<ExpressionWithoutBlockInner> for StructExpression
Source§type Error = TryIntoError<ExpressionWithoutBlockInner>
type Error = TryIntoError<ExpressionWithoutBlockInner>
The type returned in the event of a conversion error.
Source§fn try_from(
value: ExpressionWithoutBlockInner,
) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
fn try_from( value: ExpressionWithoutBlockInner, ) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
Performs the conversion.
Source§impl TryFrom<ExpressionWithoutBlockInner> for TupleExpression
impl TryFrom<ExpressionWithoutBlockInner> for TupleExpression
Source§type Error = TryIntoError<ExpressionWithoutBlockInner>
type Error = TryIntoError<ExpressionWithoutBlockInner>
The type returned in the event of a conversion error.
Source§fn try_from(
value: ExpressionWithoutBlockInner,
) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
fn try_from( value: ExpressionWithoutBlockInner, ) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
Performs the conversion.
Source§impl TryFrom<ExpressionWithoutBlockInner> for TupleIndexingExpression
impl TryFrom<ExpressionWithoutBlockInner> for TupleIndexingExpression
Source§type Error = TryIntoError<ExpressionWithoutBlockInner>
type Error = TryIntoError<ExpressionWithoutBlockInner>
The type returned in the event of a conversion error.
Source§fn try_from(
value: ExpressionWithoutBlockInner,
) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
fn try_from( value: ExpressionWithoutBlockInner, ) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
Performs the conversion.
Source§impl TryFrom<ExpressionWithoutBlockInner> for UnderscoreExpression
impl TryFrom<ExpressionWithoutBlockInner> for UnderscoreExpression
Source§type Error = TryIntoError<ExpressionWithoutBlockInner>
type Error = TryIntoError<ExpressionWithoutBlockInner>
The type returned in the event of a conversion error.
Source§fn try_from(
value: ExpressionWithoutBlockInner,
) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
fn try_from( value: ExpressionWithoutBlockInner, ) -> Result<Self, TryIntoError<ExpressionWithoutBlockInner>>
Performs the conversion.
Source§impl TryFromRecursiveRoot<ExpressionInner> for ExpressionWithoutBlockInner
impl TryFromRecursiveRoot<ExpressionInner> for ExpressionWithoutBlockInner
fn try_from_recursive_root( root: ExpressionInner, parser: &mut Parser, ) -> Option<Self>
impl Eq for ExpressionWithoutBlockInner
impl StructuralPartialEq for ExpressionWithoutBlockInner
Auto Trait Implementations§
impl Freeze for ExpressionWithoutBlockInner
impl RefUnwindSafe for ExpressionWithoutBlockInner
impl !Send for ExpressionWithoutBlockInner
impl !Sync for ExpressionWithoutBlockInner
impl Unpin for ExpressionWithoutBlockInner
impl UnsafeUnpin for ExpressionWithoutBlockInner
impl UnwindSafe for ExpressionWithoutBlockInner
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§impl<R, T> FromRecursiveRoot<R> for Twhere
T: From<R>,
impl<R, T> FromRecursiveRoot<R> for Twhere
T: From<R>,
fn from_recursive_root(root: R, _parser: &mut Parser) -> T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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 more