pub enum CalcValue<'a> {
Scalar(LiteralValue),
Range(RangeView<'a>),
}Variants§
Scalar(LiteralValue)
Range(RangeView<'a>)
Implementations§
Source§impl<'a> CalcValue<'a>
impl<'a> CalcValue<'a>
pub fn into_literal(self) -> LiteralValue
pub fn as_scalar(&self) -> Option<&LiteralValue>
pub fn as_range(&self) -> Option<&RangeView<'a>>
pub fn into_owned(self) -> LiteralValue
Trait Implementations§
Source§impl From<CalcValue<'_>> for LiteralValue
impl From<CalcValue<'_>> for LiteralValue
Source§impl<'a> PartialEq<CalcValue<'a>> for LiteralValue
impl<'a> PartialEq<CalcValue<'a>> for LiteralValue
Source§impl<'a> PartialEq<LiteralValue> for CalcValue<'a>
impl<'a> PartialEq<LiteralValue> for CalcValue<'a>
Auto Trait Implementations§
impl<'a> Freeze for CalcValue<'a>
impl<'a> !RefUnwindSafe for CalcValue<'a>
impl<'a> Send for CalcValue<'a>
impl<'a> Sync for CalcValue<'a>
impl<'a> Unpin for CalcValue<'a>
impl<'a> UnsafeUnpin for CalcValue<'a>
impl<'a> !UnwindSafe for CalcValue<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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