pub enum NodeOrValue<'a, 'q> {
Node(&'a dyn Queryable<'q>),
Value(Value),
}Variants§
Implementations§
Source§impl<'a, 'q> NodeOrValue<'a, 'q>
impl<'a, 'q> NodeOrValue<'a, 'q>
pub fn try_into_int(self) -> Result<i64, Error>
pub fn try_into_value(self) -> Result<Value, Error>
pub fn try_into_node(self) -> Result<&'a dyn Queryable<'q>, Error>
Trait Implementations§
Source§impl<'a, 'q> Debug for NodeOrValue<'a, 'q>
impl<'a, 'q> Debug for NodeOrValue<'a, 'q>
Source§impl<'a, 'q> Display for NodeOrValue<'a, 'q>
impl<'a, 'q> Display for NodeOrValue<'a, 'q>
Source§impl<'a, 'q> From<&'a dyn Queryable<'q>> for NodeOrValue<'a, 'q>
impl<'a, 'q> From<&'a dyn Queryable<'q>> for NodeOrValue<'a, 'q>
Source§fn from(n: &'a dyn Queryable<'q>) -> NodeOrValue<'a, 'q>
fn from(n: &'a dyn Queryable<'q>) -> NodeOrValue<'a, 'q>
Converts to this type from the input type.
Source§impl<'a, 'q> From<Value> for NodeOrValue<'a, 'q>
impl<'a, 'q> From<Value> for NodeOrValue<'a, 'q>
Source§fn from(v: Value) -> NodeOrValue<'a, 'q>
fn from(v: Value) -> NodeOrValue<'a, 'q>
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a, 'q> Freeze for NodeOrValue<'a, 'q>
impl<'a, 'q> !RefUnwindSafe for NodeOrValue<'a, 'q>
impl<'a, 'q> !Send for NodeOrValue<'a, 'q>
impl<'a, 'q> !Sync for NodeOrValue<'a, 'q>
impl<'a, 'q> Unpin for NodeOrValue<'a, 'q>
impl<'a, 'q> !UnwindSafe for NodeOrValue<'a, 'q>
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<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