Enum prqlc::ir::rq::RelationColumn
source · pub enum RelationColumn {
Single(Option<String>),
Wildcard,
}
Variants§
Single(Option<String>)
A single column that may have a name. Unnamed columns cannot be referenced.
Wildcard
Means “and other unmentioned columns”. Does not mean “all columns”.
Implementations§
source§impl RelationColumn
impl RelationColumn
sourcepub fn is_single(&self) -> bool
pub fn is_single(&self) -> bool
Returns true if this is a RelationColumn::Single
, otherwise false
sourcepub fn as_single_mut(&mut self) -> Option<&mut Option<String>>
pub fn as_single_mut(&mut self) -> Option<&mut Option<String>>
Optionally returns mutable references to the inner fields if this is a RelationColumn::Single
, otherwise None
sourcepub fn as_single(&self) -> Option<&Option<String>>
pub fn as_single(&self) -> Option<&Option<String>>
Optionally returns references to the inner fields if this is a RelationColumn::Single
, otherwise None
sourcepub fn into_single(self) -> Result<Option<String>, Self>
pub fn into_single(self) -> Result<Option<String>, Self>
Returns the inner fields if this is a RelationColumn::Single
, otherwise returns back the enum in the Err
case of the result
sourcepub fn is_wildcard(&self) -> bool
pub fn is_wildcard(&self) -> bool
Returns true if this is a RelationColumn::Wildcard
, otherwise false
Trait Implementations§
source§impl Clone for RelationColumn
impl Clone for RelationColumn
source§fn clone(&self) -> RelationColumn
fn clone(&self) -> RelationColumn
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 RelationColumn
impl Debug for RelationColumn
source§impl<'de> Deserialize<'de> for RelationColumn
impl<'de> Deserialize<'de> for RelationColumn
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 Hash for RelationColumn
impl Hash for RelationColumn
source§impl PartialEq for RelationColumn
impl PartialEq for RelationColumn
source§fn eq(&self, other: &RelationColumn) -> bool
fn eq(&self, other: &RelationColumn) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for RelationColumn
impl Serialize for RelationColumn
impl Eq for RelationColumn
impl StructuralPartialEq for RelationColumn
Auto Trait Implementations§
impl RefUnwindSafe for RelationColumn
impl Send for RelationColumn
impl Sync for RelationColumn
impl Unpin for RelationColumn
impl UnwindSafe for RelationColumn
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