pub enum StringOrDict<'py> {
String(String),
Dict(Bound<'py, PyDict>),
}
Available on crate feature
python
only.Expand description
A string or dictionary.
Used for the CQL2 filter argument and for intersects.
Variants§
Trait Implementations§
Source§impl<'py> Debug for StringOrDict<'py>
impl<'py> Debug for StringOrDict<'py>
Source§impl<'py> FromPyObject<'py> for StringOrDict<'py>
impl<'py> FromPyObject<'py> for StringOrDict<'py>
Auto Trait Implementations§
impl<'py> Freeze for StringOrDict<'py>
impl<'py> !RefUnwindSafe for StringOrDict<'py>
impl<'py> !Send for StringOrDict<'py>
impl<'py> !Sync for StringOrDict<'py>
impl<'py> Unpin for StringOrDict<'py>
impl<'py> UnwindSafe for StringOrDict<'py>
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
Source§impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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