Struct DerivedRef
pub struct DerivedRef<'a> {
pub nesting: usize,
pub index: usize,
pub derived: &'a TableDerived,
}Expand description
A resolved reference into a derived table column.
Fields§
§nesting: usizeHow many query scopes up from the current scope.
index: usizeThe column index within the derived table’s output.
derived: &'a TableDerivedReference to the derived table definition.
Implementations§
§impl DerivedRef<'_>
impl DerivedRef<'_>
pub fn is_column_always_null(&self) -> bool
pub fn is_column_always_null(&self) -> bool
Returns true if the derived table is backed by a VALUES body and every
row has Null at this column position.
Returns false conservatively when the body is not VALUES, the VALUES
is empty, or any row doesn’t have a recognizable null at the column.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for DerivedRef<'a>
impl<'a> RefUnwindSafe for DerivedRef<'a>
impl<'a> Send for DerivedRef<'a>
impl<'a> Sync for DerivedRef<'a>
impl<'a> Unpin for DerivedRef<'a>
impl<'a> UnwindSafe for DerivedRef<'a>
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