pub enum Expr {
Show 63 variants
Identifier(Ident),
CompoundIdentifier(Vec<Ident>),
CompoundFieldAccess {
root: Box<Expr>,
access_chain: Vec<AccessExpr>,
},
JsonAccess {
value: Box<Expr>,
path: JsonPath,
},
IsFalse(Box<Expr>),
IsNotFalse(Box<Expr>),
IsTrue(Box<Expr>),
IsNotTrue(Box<Expr>),
IsNull(Box<Expr>),
IsNotNull(Box<Expr>),
IsUnknown(Box<Expr>),
IsNotUnknown(Box<Expr>),
IsDistinctFrom(Box<Expr>, Box<Expr>),
IsNotDistinctFrom(Box<Expr>, Box<Expr>),
IsNormalized {
expr: Box<Expr>,
form: Option<NormalizationForm>,
negated: bool,
},
InList {
expr: Box<Expr>,
list: Vec<Expr>,
negated: bool,
},
InSubquery {
expr: Box<Expr>,
subquery: Box<Query>,
negated: bool,
},
InUnnest {
expr: Box<Expr>,
array_expr: Box<Expr>,
negated: bool,
},
Between {
expr: Box<Expr>,
negated: bool,
low: Box<Expr>,
high: Box<Expr>,
},
BinaryOp {
left: Box<Expr>,
op: BinaryOperator,
right: Box<Expr>,
},
Like {
negated: bool,
any: bool,
expr: Box<Expr>,
pattern: Box<Expr>,
escape_char: Option<Value>,
},
ILike {
negated: bool,
any: bool,
expr: Box<Expr>,
pattern: Box<Expr>,
escape_char: Option<Value>,
},
SimilarTo {
negated: bool,
expr: Box<Expr>,
pattern: Box<Expr>,
escape_char: Option<Value>,
},
RLike {
negated: bool,
expr: Box<Expr>,
pattern: Box<Expr>,
regexp: bool,
},
AnyOp {
left: Box<Expr>,
compare_op: BinaryOperator,
right: Box<Expr>,
is_some: bool,
},
AllOp {
left: Box<Expr>,
compare_op: BinaryOperator,
right: Box<Expr>,
},
UnaryOp {
op: UnaryOperator,
expr: Box<Expr>,
},
Convert {
is_try: bool,
expr: Box<Expr>,
data_type: Option<DataType>,
charset: Option<ObjectName>,
target_before_value: bool,
styles: Vec<Expr>,
},
Cast {
kind: CastKind,
expr: Box<Expr>,
data_type: DataType,
format: Option<CastFormat>,
},
AtTimeZone {
timestamp: Box<Expr>,
time_zone: Box<Expr>,
},
Extract {
field: DateTimeField,
syntax: ExtractSyntax,
expr: Box<Expr>,
},
Ceil {
expr: Box<Expr>,
field: CeilFloorKind,
},
Floor {
expr: Box<Expr>,
field: CeilFloorKind,
},
Position {
expr: Box<Expr>,
in: Box<Expr>,
},
Substring {
expr: Box<Expr>,
substring_from: Option<Box<Expr>>,
substring_for: Option<Box<Expr>>,
special: bool,
shorthand: bool,
},
Trim {
expr: Box<Expr>,
trim_where: Option<TrimWhereField>,
trim_what: Option<Box<Expr>>,
trim_characters: Option<Vec<Expr>>,
},
Overlay {
expr: Box<Expr>,
overlay_what: Box<Expr>,
overlay_from: Box<Expr>,
overlay_for: Option<Box<Expr>>,
},
Collate {
expr: Box<Expr>,
collation: ObjectName,
},
Nested(Box<Expr>),
Value(ValueWithSpan),
Prefixed {
prefix: Ident,
value: Box<Expr>,
},
TypedString {
data_type: DataType,
value: ValueWithSpan,
},
Function(Function),
Case {
case_token: AttachedToken,
end_token: AttachedToken,
operand: Option<Box<Expr>>,
conditions: Vec<CaseWhen>,
else_result: Option<Box<Expr>>,
},
Exists {
subquery: Box<Query>,
negated: bool,
},
Subquery(Box<Query>),
GroupingSets(Vec<Vec<Expr>>),
Cube(Vec<Vec<Expr>>),
Rollup(Vec<Vec<Expr>>),
Tuple(Vec<Expr>),
Struct {
values: Vec<Expr>,
fields: Vec<StructField>,
},
Named {
expr: Box<Expr>,
name: Ident,
},
Dictionary(Vec<DictionaryField>),
Map(Map),
Array(Array),
Interval(Interval),
MatchAgainst {
columns: Vec<ObjectName>,
match_value: Value,
opt_search_modifier: Option<SearchModifier>,
},
Wildcard(AttachedToken),
QualifiedWildcard(ObjectName, AttachedToken),
OuterJoin(Box<Expr>),
Prior(Box<Expr>),
Lambda(LambdaFunction),
MemberOf(MemberOf),
}Expand description
An SQL expression of any type.
§Semantics / Type Checking
The parser does not distinguish between expressions of different types
(e.g. boolean vs string). The caller is responsible for detecting and
validating types as necessary (for example WHERE 1 vs SELECT 1=1)
See the README.md for more details.
§Equality and Hashing Does not Include Source Locations
The Expr type implements PartialEq and Eq based on the semantic value
of the expression (not bitwise comparison). This means that Expr instances
that are semantically equivalent but have different spans (locations in the
source tree) will compare as equal.
Variants§
Identifier(Ident)
Identifier e.g. table name or column name
CompoundIdentifier(Vec<Ident>)
Multi-part identifier, e.g. table_alias.column or schema.table.col
CompoundFieldAccess
Multi-part expression access.
This structure represents an access chain in structured / nested types such as maps, arrays, and lists:
- Array
- A 1-dim array
a[1]will be represented like:CompoundFieldAccess(Ident('a'), vec![Subscript(1)] - A 2-dim array
a[1][2]will be represented like:CompoundFieldAccess(Ident('a'), vec![Subscript(1), Subscript(2)]
- A 1-dim array
- Map or Struct (Bracket-style)
- A map
a['field1']will be represented like:CompoundFieldAccess(Ident('a'), vec![Subscript('field')] - A 2-dim map
a['field1']['field2']will be represented like:CompoundFieldAccess(Ident('a'), vec![Subscript('field1'), Subscript('field2')]
- A map
- Struct (Dot-style) (only effect when the chain contains both subscript and expr)
- A struct access
a[field1].field2will be represented like:CompoundFieldAccess(Ident('a'), vec![Subscript('field1'), Ident('field2')]
- A struct access
- If a struct access likes
a.field1.field2, it will be represented by CompoundIdentifier([a, field1, field2])
JsonAccess
Access data nested in a value containing semi-structured data, such as
the VARIANT type on Snowflake. for example src:customer[0].name.
See https://docs.snowflake.com/en/user-guide/querying-semistructured. See https://docs.databricks.com/en/sql/language-manual/functions/colonsign.html.
IsFalse(Box<Expr>)
IS FALSE operator
IsNotFalse(Box<Expr>)
IS NOT FALSE operator
IsTrue(Box<Expr>)
IS TRUE operator
IsNotTrue(Box<Expr>)
IS NOT TRUE operator
IsNull(Box<Expr>)
IS NULL operator
IsNotNull(Box<Expr>)
IS NOT NULL operator
IsUnknown(Box<Expr>)
IS UNKNOWN operator
IsNotUnknown(Box<Expr>)
IS NOT UNKNOWN operator
IsDistinctFrom(Box<Expr>, Box<Expr>)
IS DISTINCT FROM operator
IsNotDistinctFrom(Box<Expr>, Box<Expr>)
IS NOT DISTINCT FROM operator
IsNormalized
<expr> IS [ NOT ] [ form ] NORMALIZED
InList
[ NOT ] IN (val1, val2, ...)
InSubquery
[ NOT ] IN (SELECT ...)
InUnnest
[ NOT ] IN UNNEST(array_expression)
Between
<expr> [ NOT ] BETWEEN <low> AND <high>
BinaryOp
Binary operation e.g. 1 + 1 or foo > bar
Like
[NOT] LIKE <pattern> [ESCAPE <escape_character>]
ILike
ILIKE (case-insensitive LIKE)
SimilarTo
SIMILAR TO regex
RLike
MySQL: RLIKE regex or REGEXP regex
AnyOp
ANY operation e.g. foo > ANY(bar), comparison operator is one of [=, >, <, =>, =<, !=]
https://docs.snowflake.com/en/sql-reference/operators-subquery#all-any
AllOp
ALL operation e.g. foo > ALL(bar), comparison operator is one of [=, >, <, =>, =<, !=]
https://docs.snowflake.com/en/sql-reference/operators-subquery#all-any
UnaryOp
Unary operation e.g. NOT foo
Convert
CONVERT a value to a different data type or character encoding. e.g. CONVERT(foo USING utf8mb4)
Fields
is_try: boolCONVERT (false) or TRY_CONVERT (true) https://learn.microsoft.com/en-us/sql/t-sql/functions/try-convert-transact-sql?view=sql-server-ver16
charset: Option<ObjectName>The target character encoding
Cast
CAST an expression to a different data type e.g. CAST(foo AS VARCHAR(123))
Fields
format: Option<CastFormat>Optional CAST(string_expression AS type FORMAT format_string_expression) as used by BigQuery
AtTimeZone
AT a timestamp to a different timezone e.g. FROM_UNIXTIME(0) AT TIME ZONE 'UTC-06:00'
Extract
Extract a field from a timestamp e.g. EXTRACT(MONTH FROM foo)
Or EXTRACT(MONTH, foo)
Syntax:
EXTRACT(DateTimeField FROM <expr>) | EXTRACT(DateTimeField, <expr>)Ceil
CEIL(<expr> [TO DateTimeField])CEIL( <input_expr> [, <scale_expr> ] )Floor
FLOOR(<expr> [TO DateTimeField])FLOOR( <input_expr> [, <scale_expr> ] )Position
POSITION(<expr> in <expr>)Substring
SUBSTRING(<expr> [FROM <expr>] [FOR <expr>])or
SUBSTRING(<expr>, <expr>, <expr>)Fields
Trim
TRIM([BOTH | LEADING | TRAILING] [<expr> FROM] <expr>)
TRIM(<expr>)
TRIM(<expr>, [, characters]) -- only Snowflake or BigqueryFields
trim_where: Option<TrimWhereField>Overlay
OVERLAY(<expr> PLACING <expr> FROM <expr>[ FOR <expr> ]Fields
Collate
expr COLLATE collation
Nested(Box<Expr>)
Nested expression e.g. (foo > bar) or (1)
Value(ValueWithSpan)
A literal value, such as string, number, date or NULL
Prefixed
Prefixed expression, e.g. introducer strings, projection prefix https://dev.mysql.com/doc/refman/8.0/en/charset-introducer.html https://docs.snowflake.com/en/sql-reference/constructs/connect-by
Fields
TypedString
A constant of form <data_type> 'value'.
This can represent ANSI SQL DATE, TIME, and TIMESTAMP literals (such as DATE '2020-01-01'),
as well as constants of other types (a non-standard PostgreSQL extension).
Fields
value: ValueWithSpanThe value of the constant.
Hint: you can unwrap the string value using value.into_string().
Function(Function)
Scalar function call e.g. LEFT(foo, 5)
Case
CASE [<operand>] WHEN <condition> THEN <result> ... [ELSE <result>] END
Note we only recognize a complete single expression as <condition>,
not < 0 nor 1, 2, 3 as allowed in a <simple when clause> per
https://jakewheat.github.io/sql-overview/sql-2011-foundation-grammar.html#simple-when-clause
Exists
An exists expression [ NOT ] EXISTS(SELECT ...), used in expressions like
WHERE [ NOT ] EXISTS (SELECT ...).
Subquery(Box<Query>)
A parenthesized subquery (SELECT ...), used in expression like
SELECT (subquery) AS x or WHERE (subquery) = x
GroupingSets(Vec<Vec<Expr>>)
The GROUPING SETS expr.
Cube(Vec<Vec<Expr>>)
The CUBE expr.
Rollup(Vec<Vec<Expr>>)
The ROLLUP expr.
Tuple(Vec<Expr>)
ROW / TUPLE a single value, such as SELECT (1, 2)
Struct
Struct literal expression
Syntax:
STRUCT<[field_name] field_type, ...>( expr1 [, ... ])
[BigQuery](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types#struct_type)
[Databricks](https://docs.databricks.com/en/sql/language-manual/functions/struct.html)Named
Dictionary(Vec<DictionaryField>)
Map(Map)
Array(Array)
An array expression e.g. ARRAY[1, 2]
Interval(Interval)
An interval expression e.g. INTERVAL '1' YEAR
MatchAgainst
MySQL specific text search function (1).
Syntax:
MATCH (<col>, <col>, ...) AGAINST (<expr> [<search modifier>])
<col> = CompoundIdentifier
<expr> = String literalFields
columns: Vec<ObjectName>(<col>, <col>, ...).
opt_search_modifier: Option<SearchModifier><search modifier>
Wildcard(AttachedToken)
QualifiedWildcard(ObjectName, AttachedToken)
Qualified wildcard, e.g. alias.* or schema.table.*.
(Same caveats apply to QualifiedWildcard as to Wildcard.)
OuterJoin(Box<Expr>)
Some dialects support an older syntax for outer joins where columns are
marked with the (+) operator in the WHERE clause, for example:
SELECT t1.c1, t2.c2 FROM t1, t2 WHERE t1.c1 = t2.c2 (+)which is equivalent to
SELECT t1.c1, t2.c2 FROM t1 LEFT OUTER JOIN t2 ON t1.c1 = t2.c2See https://docs.snowflake.com/en/sql-reference/constructs/where#joins-in-the-where-clause.
Prior(Box<Expr>)
A reference to the prior level in a CONNECT BY clause.
Lambda(LambdaFunction)
MemberOf(MemberOf)
Checks membership of a value in a JSON array
Implementations§
Source§impl Expr
impl Expr
Sourcepub fn value(value: impl Into<ValueWithSpan>) -> Expr
pub fn value(value: impl Into<ValueWithSpan>) -> Expr
Creates a new Expr::Value
Trait Implementations§
Source§impl From<Expr> for FunctionArgExpr
impl From<Expr> for FunctionArgExpr
Source§fn from(wildcard_expr: Expr) -> FunctionArgExpr
fn from(wildcard_expr: Expr) -> FunctionArgExpr
Source§impl Ord for Expr
impl Ord for Expr
Source§impl PartialOrd for Expr
impl PartialOrd for Expr
Source§impl Spanned for Expr
§partial span
Most expressions are missing keywords in their spans.
f.e. IS NULL <expr> reports as <expr>::span.
impl Spanned for Expr
§partial span
Most expressions are missing keywords in their spans.
f.e. IS NULL <expr> reports as <expr>::span.
Missing spans:
- Expr::MatchAgainst # MySQL specific
- Expr::RLike # MySQL specific
- Expr::Struct # BigQuery specific
- Expr::Named # BigQuery specific
- Expr::Dictionary # DuckDB specific
- Expr::Map # DuckDB specific
- Expr::Lambda
Source§impl VisitMut for Expr
impl VisitMut for Expr
fn visit<V>(&mut self, visitor: &mut V) -> ControlFlow<<V as VisitorMut>::Break>where
V: VisitorMut,
impl Eq for Expr
impl StructuralPartialEq for Expr
Auto Trait Implementations§
impl Freeze for Expr
impl RefUnwindSafe for Expr
impl Send for Expr
impl Sync for Expr
impl Unpin for Expr
impl UnwindSafe for Expr
Blanket Implementations§
Source§impl<T> AlignerFor<1> for T
impl<T> AlignerFor<1> for T
Source§impl<T> AlignerFor<1024> for T
impl<T> AlignerFor<1024> for T
Source§type Aligner = AlignTo1024<T>
type Aligner = AlignTo1024<T>
AlignTo* type which aligns Self to ALIGNMENT.Source§impl<T> AlignerFor<128> for T
impl<T> AlignerFor<128> for T
Source§type Aligner = AlignTo128<T>
type Aligner = AlignTo128<T>
AlignTo* type which aligns Self to ALIGNMENT.Source§impl<T> AlignerFor<16> for T
impl<T> AlignerFor<16> for T
Source§impl<T> AlignerFor<16384> for T
impl<T> AlignerFor<16384> for T
Source§type Aligner = AlignTo16384<T>
type Aligner = AlignTo16384<T>
AlignTo* type which aligns Self to ALIGNMENT.Source§impl<T> AlignerFor<2> for T
impl<T> AlignerFor<2> for T
Source§impl<T> AlignerFor<2048> for T
impl<T> AlignerFor<2048> for T
Source§type Aligner = AlignTo2048<T>
type Aligner = AlignTo2048<T>
AlignTo* type which aligns Self to ALIGNMENT.Source§impl<T> AlignerFor<256> for T
impl<T> AlignerFor<256> for T
Source§type Aligner = AlignTo256<T>
type Aligner = AlignTo256<T>
AlignTo* type which aligns Self to ALIGNMENT.Source§impl<T> AlignerFor<32> for T
impl<T> AlignerFor<32> for T
Source§impl<T> AlignerFor<32768> for T
impl<T> AlignerFor<32768> for T
Source§type Aligner = AlignTo32768<T>
type Aligner = AlignTo32768<T>
AlignTo* type which aligns Self to ALIGNMENT.Source§impl<T> AlignerFor<4> for T
impl<T> AlignerFor<4> for T
Source§impl<T> AlignerFor<4096> for T
impl<T> AlignerFor<4096> for T
Source§type Aligner = AlignTo4096<T>
type Aligner = AlignTo4096<T>
AlignTo* type which aligns Self to ALIGNMENT.Source§impl<T> AlignerFor<512> for T
impl<T> AlignerFor<512> for T
Source§type Aligner = AlignTo512<T>
type Aligner = AlignTo512<T>
AlignTo* type which aligns Self to ALIGNMENT.Source§impl<T> AlignerFor<64> for T
impl<T> AlignerFor<64> for T
Source§impl<T> AlignerFor<8> for T
impl<T> AlignerFor<8> for T
Source§impl<T> AlignerFor<8192> for T
impl<T> AlignerFor<8192> for T
Source§type Aligner = AlignTo8192<T>
type Aligner = AlignTo8192<T>
AlignTo* type which aligns Self to ALIGNMENT.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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
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>
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<'a, T> RCowCompatibleRef<'a> for Twhere
T: Clone + 'a,
impl<'a, T> RCowCompatibleRef<'a> for Twhere
T: Clone + 'a,
Source§fn as_c_ref(from: &'a T) -> <T as RCowCompatibleRef<'a>>::RefC
fn as_c_ref(from: &'a T) -> <T as RCowCompatibleRef<'a>>::RefC
Source§fn as_rust_ref(from: <T as RCowCompatibleRef<'a>>::RefC) -> &'a T
fn as_rust_ref(from: <T as RCowCompatibleRef<'a>>::RefC) -> &'a T
Source§impl<S> ROExtAcc for S
impl<S> ROExtAcc for S
Source§fn f_get<F>(&self, offset: FieldOffset<S, F, Aligned>) -> &F
fn f_get<F>(&self, offset: FieldOffset<S, F, Aligned>) -> &F
offset. Read moreSource§fn f_get_mut<F>(&mut self, offset: FieldOffset<S, F, Aligned>) -> &mut F
fn f_get_mut<F>(&mut self, offset: FieldOffset<S, F, Aligned>) -> &mut F
offset. Read moreSource§fn f_get_ptr<F, A>(&self, offset: FieldOffset<S, F, A>) -> *const F
fn f_get_ptr<F, A>(&self, offset: FieldOffset<S, F, A>) -> *const F
offset. Read moreSource§fn f_get_mut_ptr<F, A>(&mut self, offset: FieldOffset<S, F, A>) -> *mut F
fn f_get_mut_ptr<F, A>(&mut self, offset: FieldOffset<S, F, A>) -> *mut F
offset. Read moreSource§impl<S> ROExtOps<Aligned> for S
impl<S> ROExtOps<Aligned> for S
Source§fn f_replace<F>(&mut self, offset: FieldOffset<S, F, Aligned>, value: F) -> F
fn f_replace<F>(&mut self, offset: FieldOffset<S, F, Aligned>, value: F) -> F
offset) with value,
returning the previous value of the field. Read moreSource§fn f_get_copy<F>(&self, offset: FieldOffset<S, F, Aligned>) -> Fwhere
F: Copy,
fn f_get_copy<F>(&self, offset: FieldOffset<S, F, Aligned>) -> Fwhere
F: Copy,
Source§impl<S> ROExtOps<Unaligned> for S
impl<S> ROExtOps<Unaligned> for S
Source§fn f_replace<F>(&mut self, offset: FieldOffset<S, F, Unaligned>, value: F) -> F
fn f_replace<F>(&mut self, offset: FieldOffset<S, F, Unaligned>, value: F) -> F
offset) with value,
returning the previous value of the field. Read moreSource§fn f_get_copy<F>(&self, offset: FieldOffset<S, F, Unaligned>) -> Fwhere
F: Copy,
fn f_get_copy<F>(&self, offset: FieldOffset<S, F, Unaligned>) -> Fwhere
F: Copy,
Source§impl<T> SelfOps for Twhere
T: ?Sized,
impl<T> SelfOps for Twhere
T: ?Sized,
Source§fn piped<F, U>(self, f: F) -> U
fn piped<F, U>(self, f: F) -> U
Source§fn piped_ref<'a, F, U>(&'a self, f: F) -> Uwhere
F: FnOnce(&'a Self) -> U,
fn piped_ref<'a, F, U>(&'a self, f: F) -> Uwhere
F: FnOnce(&'a Self) -> U,
piped except that the function takes &Self
Useful for functions that take &Self instead of Self. Read moreSource§fn piped_mut<'a, F, U>(&'a mut self, f: F) -> Uwhere
F: FnOnce(&'a mut Self) -> U,
fn piped_mut<'a, F, U>(&'a mut self, f: F) -> Uwhere
F: FnOnce(&'a mut Self) -> U,
piped, except that the function takes &mut Self.
Useful for functions that take &mut Self instead of Self.Source§fn mutated<F>(self, f: F) -> Self
fn mutated<F>(self, f: F) -> Self
Source§fn observe<F>(self, f: F) -> Self
fn observe<F>(self, f: F) -> Self
Source§fn as_ref_<T>(&self) -> &T
fn as_ref_<T>(&self) -> &T
AsRef,
using the turbofish .as_ref_::<_>() syntax. Read moreSource§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.