Struct MapNameSpace
pub struct MapNameSpace(/* private fields */);Available on crate feature
lazy only.Expand description
Specialized expressions for DataType::Map.
Implementations§
§impl MapNameSpace
impl MapNameSpace
pub fn entries(self) -> Expr
pub fn entries(self) -> Expr
Convert this Map to a List of Struct {key, value} entries.
Null maps remain null.
pub fn keys(self) -> Expr
pub fn keys(self) -> Expr
Get the keys of every map as a List, in entry order.
Null maps remain null.
pub fn values(self) -> Expr
pub fn values(self) -> Expr
Get the values of every map as a List, in entry order.
Null maps remain null.
pub fn contains_key(self, key: Expr) -> Expr
pub fn contains_key(self, key: Expr) -> Expr
Check whether every map holds key.
Null maps remain null. Map keys are never null, so a null key is never found.
Auto Trait Implementations§
impl !Freeze for MapNameSpace
impl !RefUnwindSafe for MapNameSpace
impl !UnwindSafe for MapNameSpace
impl Send for MapNameSpace
impl Sync for MapNameSpace
impl Unpin for MapNameSpace
impl UnsafeUnpin for MapNameSpace
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more