[−][src]Enum yoloxide::types::ast::value::LiteralValue
Variants
NumberVal(YololNumber)
StringVal(String)
Methods
impl LiteralValue
[src]
pub fn get_false() -> Self
[src]
pub fn get_true() -> Self
[src]
pub fn pow(self, other: Self) -> Result<LiteralValue, OperatorError>
[src]
pub fn factorial(self) -> Result<LiteralValue, OperatorError>
[src]
pub fn abs(self) -> Result<LiteralValue, OperatorError>
[src]
pub fn sqrt(self) -> Result<LiteralValue, OperatorError>
[src]
pub fn sin(self) -> Result<LiteralValue, OperatorError>
[src]
pub fn cos(self) -> Result<LiteralValue, OperatorError>
[src]
pub fn tan(self) -> Result<LiteralValue, OperatorError>
[src]
pub fn arcsin(self) -> Result<LiteralValue, OperatorError>
[src]
pub fn arccos(self) -> Result<LiteralValue, OperatorError>
[src]
pub fn arctan(self) -> Result<LiteralValue, OperatorError>
[src]
Trait Implementations
impl Clone for LiteralValue
[src]
fn clone(&self) -> LiteralValue
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Ord for LiteralValue
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
fn clamp(self, min: Self, max: Self) -> Self
[src]
clamp
)Restrict a value to a certain interval. Read more
impl From<bool> for LiteralValue
[src]
fn from(input: bool) -> LiteralValue
[src]
impl From<YololNumber<i128>> for LiteralValue
[src]
fn from(input: YololNumber) -> LiteralValue
[src]
impl From<i64> for LiteralValue
[src]
fn from(input: i64) -> LiteralValue
[src]
impl<'_> From<&'_ str> for LiteralValue
[src]
fn from(input: &str) -> LiteralValue
[src]
impl PartialOrd<LiteralValue> for LiteralValue
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl PartialEq<LiteralValue> for LiteralValue
[src]
fn eq(&self, other: &Self) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for LiteralValue
[src]
impl Display for LiteralValue
[src]
impl Debug for LiteralValue
[src]
impl Div<LiteralValue> for LiteralValue
[src]
type Output = Result<LiteralValue, OperatorError>
The resulting type after applying the /
operator.
fn div(self, other: Self) -> Self::Output
[src]
impl Add<LiteralValue> for LiteralValue
[src]
type Output = Result<LiteralValue, OperatorError>
The resulting type after applying the +
operator.
fn add(self, other: Self) -> Self::Output
[src]
impl Sub<LiteralValue> for LiteralValue
[src]
type Output = Result<LiteralValue, OperatorError>
The resulting type after applying the -
operator.
fn sub(self, other: Self) -> Self::Output
[src]
impl Mul<LiteralValue> for LiteralValue
[src]
type Output = Result<LiteralValue, OperatorError>
The resulting type after applying the *
operator.
fn mul(self, other: Self) -> Self::Output
[src]
impl Rem<LiteralValue> for LiteralValue
[src]
type Output = Result<LiteralValue, OperatorError>
The resulting type after applying the %
operator.
fn rem(self, other: Self) -> Self::Output
[src]
impl Neg for LiteralValue
[src]
type Output = Result<LiteralValue, OperatorError>
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl Not for LiteralValue
[src]
type Output = Result<LiteralValue, OperatorError>
The resulting type after applying the !
operator.
fn not(self) -> Self::Output
[src]
impl<'de> Deserialize<'de> for LiteralValue
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for LiteralValue
[src]
Auto Trait Implementations
impl Sync for LiteralValue
impl Send for LiteralValue
impl Unpin for LiteralValue
impl RefUnwindSafe for LiteralValue
impl UnwindSafe for LiteralValue
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T, Rhs, Output> NumOps<Rhs, Output> for T where
T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,
[src]
T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,