pub enum BoundCollation {
Unspecified,
Binary,
Named(String),
}Expand description
Collation metadata retained by a value bound from an outer query.
This is deliberately tri-state. A physical column with no named collation
still has the known Self::Binary collation and therefore wins SQLite’s
left-to-right declared-collation precedence. Self::Unspecified is
metadata-neutral and is reserved for synthesized values, such as a FULL JOIN ... USING coalesced output, that must not donate a collation.
Variants§
Unspecified
The synthesized value does not define a comparison collation.
Binary
The source is known to use SQLite’s default BINARY collation.
Named(String)
The source uses the named collation.
Implementations§
Source§impl BoundCollation
impl BoundCollation
Sourcepub fn from_declared_name(name: Option<String>) -> Self
pub fn from_declared_name(name: Option<String>) -> Self
Convert schema-level declared metadata into a bound-value collation.
A missing schema declaration means the physical column is known to use
BINARY; it does not mean that the bound expression is metadata-neutral.
Sourcepub fn as_name(&self) -> Option<&str>
pub fn as_name(&self) -> Option<&str>
Return the collation name donated to comparison resolution.
Self::Unspecified returns None; both other states return a known
collation, including BINARY.
Trait Implementations§
Source§impl Clone for BoundCollation
impl Clone for BoundCollation
Source§fn clone(&self) -> BoundCollation
fn clone(&self) -> BoundCollation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more