Struct tc_value::Boolean

source ·
pub struct Boolean(/* private fields */);
Expand description

A boolean value.

Trait Implementations§

source§

impl Add for Boolean

§

type Output = Boolean

The resulting type after applying the + operator.
source§

fn add(self, other: Boolean) -> <Boolean as Add>::Output

Performs the + operation. Read more
source§

impl AddAssign for Boolean

source§

fn add_assign(&mut self, other: Boolean)

Performs the += operation. Read more
source§

impl CastFrom<Complex> for Boolean

source§

fn cast_from(c: Complex) -> Boolean

Cast an instance of T into an instance of Self.
source§

impl CastFrom<Float> for Boolean

source§

fn cast_from(f: Float) -> Boolean

Cast an instance of T into an instance of Self.
source§

impl CastFrom<Int> for Boolean

source§

fn cast_from(i: Int) -> Boolean

Cast an instance of T into an instance of Self.
source§

impl CastFrom<Number> for Boolean

source§

fn cast_from(number: Number) -> Boolean

Cast an instance of T into an instance of Self.
source§

impl Clone for Boolean

source§

fn clone(&self) -> Boolean

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Boolean

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for Boolean

source§

fn default() -> Boolean

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Boolean

source§

fn deserialize<D>( deserializer: D ) -> Result<Boolean, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for Boolean

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Div for Boolean

§

type Output = Boolean

The resulting type after applying the / operator.
source§

fn div(self, other: Boolean) -> <Boolean as Div>::Output

Performs the / operation. Read more
source§

impl DivAssign for Boolean

source§

fn div_assign(&mut self, other: Boolean)

Performs the /= operation. Read more
source§

impl From<Boolean> for Complex

source§

fn from(b: Boolean) -> Complex

Converts to this type from the input type.
source§

impl From<Boolean> for Float

source§

fn from(b: Boolean) -> Float

Converts to this type from the input type.
source§

impl From<Boolean> for Int

source§

fn from(b: Boolean) -> Int

Converts to this type from the input type.
source§

impl From<Boolean> for Number

source§

fn from(b: Boolean) -> Number

Converts to this type from the input type.
source§

impl From<Boolean> for UInt

source§

fn from(b: Boolean) -> UInt

Converts to this type from the input type.
source§

impl From<bool> for Boolean

source§

fn from(b: bool) -> Boolean

Converts to this type from the input type.
source§

impl FromStr for Boolean

§

type Err = Error

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<Boolean, <Boolean as FromStr>::Err>

Parses a string s to return a value of this type. Read more
source§

impl FromStream for Boolean

§

type Context = ()

The decoding context of this type, useful in situations where the stream to be decoded may be too large to hold in main memory. Read more
source§

fn from_stream<'life0, 'async_trait, D>( cxt: <Boolean as FromStream>::Context, decoder: &'life0 mut D ) -> Pin<Box<dyn Future<Output = Result<Boolean, <D as Decoder>::Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, D: 'async_trait + Decoder, Boolean: 'async_trait,

Parse this value using the given Decoder.
source§

impl GetSize for Boolean

source§

fn get_size(&self) -> usize

Determines the total size of the object. Read more
source§

fn get_stack_size() -> usize

Determines how may bytes this object occupies inside the stack. Read more
source§

fn get_heap_size(&self) -> usize

Determines how many bytes this object occupies inside the heap. Read more
source§

impl<D> Hash<D> for Boolean
where D: Digest,

source§

fn hash(self) -> GenericArray<u8, <D as OutputSizeUser>::OutputSize>

Compute the SHA-2 hash of this value
source§

impl Hash for Boolean

source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<'en> IntoStream<'en> for Boolean

source§

fn into_stream<E>( self, e: E ) -> Result<<E as Encoder<'en>>::Ok, <E as Encoder<'en>>::Error>
where E: Encoder<'en>,

Take ownership of this value and serialize it into the given encoder.
source§

impl Mul for Boolean

§

type Output = Boolean

The resulting type after applying the * operator.
source§

fn mul(self, other: Boolean) -> Boolean

Performs the * operation. Read more
source§

impl MulAssign for Boolean

source§

fn mul_assign(&mut self, other: Boolean)

Performs the *= operation. Read more
source§

impl NumberInstance for Boolean

§

type Abs = Boolean

§

type Exp = Float

§

type Log = Float

§

type Round = Boolean

§

type Class = BooleanType

source§

fn class(&self) -> BooleanType

Get an impl of NumberClass describing this number.
source§

fn into_type(self, _dtype: BooleanType) -> Boolean

Cast this number into the specified NumberClass.
source§

fn abs(self) -> Boolean

Calculate the absolute value of this number.
source§

fn exp(self) -> <Boolean as NumberInstance>::Exp

Raise e to the power of this number.
source§

fn ln(self) -> <Boolean as NumberInstance>::Log

Compute the natural logarithm of this number.
source§

fn log<N>(self, base: N) -> <Boolean as NumberInstance>::Log
where N: NumberInstance, Float: From<N>,

Compute the logarithm of this number with respect to the given base.
source§

fn pow(self, exp: Number) -> Boolean

Raise this number to the given exponent. Read more
source§

fn and(self, other: Boolean) -> Boolean

Return true if self and other are nonzero.
source§

fn not(self) -> Boolean

Return true if this number is zero.
source§

fn or(self, other: Boolean) -> Boolean

Return true if self or other is nonzero.
source§

fn round(self) -> <Boolean as NumberInstance>::Round

Return this number rounded to the nearest integer.
source§

fn xor(self, other: Boolean) -> Boolean

Return true if exactly one of self and other is zero.
source§

impl Ord for Boolean

source§

fn cmp(&self, other: &Boolean) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for Boolean

source§

fn eq(&self, other: &Boolean) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for Boolean

source§

fn partial_cmp(&self, other: &Boolean) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Product for Boolean

source§

fn product<I>(iter: I) -> Boolean
where I: Iterator<Item = Boolean>,

Method which takes an iterator and generates Self from the elements by multiplying the items.
source§

impl RealInstance for Boolean

source§

const ONE: Boolean = _

source§

const ZERO: Boolean = _

source§

fn is_positive(&self) -> bool

Return true if this is zero or a positive number.
source§

fn is_negative(&self) -> bool

Return true if this is a negative number.
source§

fn is_zero(&self) -> bool

Return true if this is zero.
source§

impl Rem for Boolean

§

type Output = Boolean

The resulting type after applying the % operator.
source§

fn rem(self, other: Boolean) -> <Boolean as Rem>::Output

Performs the % operation. Read more
source§

impl RemAssign for Boolean

source§

fn rem_assign(&mut self, other: Boolean)

Performs the %= operation. Read more
source§

impl Serialize for Boolean

source§

fn serialize<S>( &self, s: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Sub for Boolean

§

type Output = Boolean

The resulting type after applying the - operator.
source§

fn sub(self, other: Boolean) -> <Boolean as Sub>::Output

Performs the - operation. Read more
source§

impl SubAssign for Boolean

source§

fn sub_assign(&mut self, other: Boolean)

Performs the -= operation. Read more
source§

impl Sum for Boolean

source§

fn sum<I>(iter: I) -> Boolean
where I: Iterator<Item = Boolean>,

Method which takes an iterator and generates Self from the elements by “summing up” the items.
source§

impl<'en> ToStream<'en> for Boolean

source§

fn to_stream<E>( &'en self, e: E ) -> Result<<E as Encoder<'en>>::Ok, <E as Encoder<'en>>::Error>
where E: Encoder<'en>,

Serialize this value into the given encoder.
source§

impl Trigonometry for Boolean

§

type Out = Float

source§

fn asin(self) -> <Boolean as Trigonometry>::Out

Arcsine
source§

fn sin(self) -> <Boolean as Trigonometry>::Out

Sine
source§

fn sinh(self) -> <Boolean as Trigonometry>::Out

Hyperbolic sine
source§

fn asinh(self) -> <Boolean as Trigonometry>::Out

Hyperbolic arcsine
source§

fn acos(self) -> <Boolean as Trigonometry>::Out

Hyperbolic arccosine
source§

fn cos(self) -> <Boolean as Trigonometry>::Out

Cosine
source§

fn cosh(self) -> <Boolean as Trigonometry>::Out

Hyperbolic cosine
source§

fn acosh(self) -> <Boolean as Trigonometry>::Out

Hyperbolic arccosine
source§

fn atan(self) -> <Boolean as Trigonometry>::Out

Arctangent
source§

fn tan(self) -> <Boolean as Trigonometry>::Out

Tangent
source§

fn tanh(self) -> <Boolean as Trigonometry>::Out

Hyperbolic tangent
source§

fn atanh(self) -> <Boolean as Trigonometry>::Out

Hyperbolic arctangent
source§

impl Copy for Boolean

source§

impl Eq for Boolean

source§

impl StructuralPartialEq for Boolean

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<F, T> CastFrom<F> for T
where T: From<F>,

source§

fn cast_from(f: F) -> T

Cast an instance of T into an instance of Self.
source§

impl<T, F> CastInto<F> for T
where F: CastFrom<T>,

source§

fn cast_into(self) -> F

Cast an instance of Self into an instance of T.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<F> Match for F

source§

fn matches<T>(&self) -> bool
where T: TryCastFrom<Self>,

Returns true if self can be cast into the target type T.
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<F, T> TryCastFrom<F> for T
where T: CastFrom<F>,

source§

fn can_cast_from(_: &F) -> bool

Test if value can be cast into Self.
source§

fn opt_cast_from(f: F) -> Option<T>

Returns Some(Self) if the source value can be cast into Self, otherwise None.
source§

fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err>
where OnErr: FnOnce(&T) -> Err,

Returns Ok(Self) if the source value can be cast into Self, otherwise calls on_err.
source§

impl<F, T> TryCastInto<T> for F
where T: TryCastFrom<F>,

source§

fn can_cast_into(&self) -> bool

Test if self can be cast into T.
source§

fn opt_cast_into(self) -> Option<T>

Returns Some(T) if self can be cast into T, otherwise None.
source§

fn try_cast_into<Err, OnErr>(self, on_err: OnErr) -> Result<T, Err>
where OnErr: FnOnce(&Self) -> Err,

Returns Ok(T) if self can be cast into T, otherwise calls on_err.
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

source§

impl<T, Rhs> NumAssignOps<Rhs> for T
where T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,

source§

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>,

source§

impl<T> RuleType for T
where T: Copy + Debug + Eq + Hash + Ord,

source§

impl<T> ThreadSafe for T
where T: Send + Sync + 'static,