Enum prql_compiler::ir::pl::LineageColumn
source · pub enum LineageColumn {
Single {
name: Option<Ident>,
target_id: usize,
target_name: Option<String>,
},
All {
input_id: usize,
except: HashSet<String>,
},
}
Variants§
Implementations§
source§impl LineageColumn
impl LineageColumn
sourcepub fn is_single(&self) -> bool
pub fn is_single(&self) -> bool
Returns true if this is a LineageColumn::Single
, otherwise false
sourcepub fn as_single_mut(
&mut self
) -> Option<(&mut Option<Ident>, &mut usize, &mut Option<String>)>
pub fn as_single_mut( &mut self ) -> Option<(&mut Option<Ident>, &mut usize, &mut Option<String>)>
Optionally returns mutable references to the inner fields if this is a LineageColumn::Single
, otherwise None
sourcepub fn as_single(&self) -> Option<(&Option<Ident>, &usize, &Option<String>)>
pub fn as_single(&self) -> Option<(&Option<Ident>, &usize, &Option<String>)>
Optionally returns references to the inner fields if this is a LineageColumn::Single
, otherwise None
sourcepub fn into_single(
self
) -> Result<(Option<Ident>, usize, Option<String>), LineageColumn>
pub fn into_single( self ) -> Result<(Option<Ident>, usize, Option<String>), LineageColumn>
Returns the inner fields if this is a LineageColumn::Single
, otherwise returns back the enum in the Err
case of the result
sourcepub fn as_all_mut(&mut self) -> Option<(&mut usize, &mut HashSet<String>)>
pub fn as_all_mut(&mut self) -> Option<(&mut usize, &mut HashSet<String>)>
Optionally returns mutable references to the inner fields if this is a LineageColumn::All
, otherwise None
Trait Implementations§
source§impl Clone for LineageColumn
impl Clone for LineageColumn
source§fn clone(&self) -> LineageColumn
fn clone(&self) -> LineageColumn
Returns a copy 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 LineageColumn
impl Debug for LineageColumn
source§impl<'de> Deserialize<'de> for LineageColumn
impl<'de> Deserialize<'de> for LineageColumn
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<LineageColumn, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<LineageColumn, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for LineageColumn
impl PartialEq for LineageColumn
source§fn eq(&self, other: &LineageColumn) -> bool
fn eq(&self, other: &LineageColumn) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LineageColumn
impl Serialize for LineageColumn
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for LineageColumn
impl StructuralPartialEq for LineageColumn
Auto Trait Implementations§
impl RefUnwindSafe for LineageColumn
impl Send for LineageColumn
impl Sync for LineageColumn
impl Unpin for LineageColumn
impl UnwindSafe for LineageColumn
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
§impl<T> Chain<T> for T
impl<T> Chain<T> for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more