pub struct Compounds {
pub operands: Vec<Compound>,
}Expand description
Every compound operand chained onto one SELECT.
Unlike Combines this holds only the
operands. SQLite’s ORDER BY and LIMIT sit after the last operand and always
belong to the whole compound — there is no way to give one operand its own —
so the statement’s single ORDER BY/LIMIT/OFFSET is already the
combination’s, and no second set is needed.
Fields§
§operands: Vec<Compound>The operands, applied left to right.
Implementations§
Source§impl Compounds
impl Compounds
Sourcepub fn append_compound(&mut self, compound: Compound)
pub fn append_compound(&mut self, compound: Compound)
Append one operand.
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Whether nothing is compounded onto the statement.
A list of nothing but absent operands counts as empty, so the enclosing statement does not write the separator in front of a clause that renders nothing. A half-filled operand is not absent — it records a failure instead.
Trait Implementations§
Source§impl Expression for Compounds
impl Expression for Compounds
Source§impl HasCompounds for Compounds
impl HasCompounds for Compounds
Source§fn compounds_mut(&mut self) -> &mut Compounds
fn compounds_mut(&mut self) -> &mut Compounds
The compound operands to modify.
Auto Trait Implementations§
impl !RefUnwindSafe for Compounds
impl !UnwindSafe for Compounds
impl Freeze for Compounds
impl Send for Compounds
impl Sync for Compounds
impl Unpin for Compounds
impl UnsafeUnpin for Compounds
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