Enum prql_compiler::ast::pl::frame::FrameColumn
source · pub enum FrameColumn {
All {
input_name: String,
except: HashSet<String>,
},
Single {
name: Option<Ident>,
expr_id: usize,
},
}
Variants§
Implementations§
source§impl FrameColumn
impl FrameColumn
sourcepub fn as_all_mut(&mut self) -> Option<(&mut String, &mut HashSet<String>)>
pub fn as_all_mut(&mut self) -> Option<(&mut String, &mut HashSet<String>)>
Optionally returns mutable references to the inner fields if this is a FrameColumn::All
, otherwise None
sourcepub fn as_all(&self) -> Option<(&String, &HashSet<String>)>
pub fn as_all(&self) -> Option<(&String, &HashSet<String>)>
Optionally returns references to the inner fields if this is a FrameColumn::All
, otherwise None
sourcepub fn into_all(self) -> Result<(String, HashSet<String>), Self>
pub fn into_all(self) -> Result<(String, HashSet<String>), Self>
Returns the inner fields if this is a FrameColumn::All
, otherwise returns back the enum in the Err
case of the result
sourcepub fn as_single_mut(&mut self) -> Option<(&mut Option<Ident>, &mut usize)>
pub fn as_single_mut(&mut self) -> Option<(&mut Option<Ident>, &mut usize)>
Optionally returns mutable references to the inner fields if this is a FrameColumn::Single
, otherwise None
Trait Implementations§
source§impl Clone for FrameColumn
impl Clone for FrameColumn
source§fn clone(&self) -> FrameColumn
fn clone(&self) -> FrameColumn
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 FrameColumn
impl Debug for FrameColumn
source§impl<'de> Deserialize<'de> for FrameColumn
impl<'de> Deserialize<'de> for FrameColumn
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<FrameColumn> for FrameColumn
impl PartialEq<FrameColumn> for FrameColumn
source§fn eq(&self, other: &FrameColumn) -> bool
fn eq(&self, other: &FrameColumn) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.