Enum BufValue

Source
pub enum BufValue {
Show 17 variants Int(i64), U_Int(u64), Float(f64), Str(String), Bool(bool), Array(Vec<Self>), Object(HashMap<String, Box<Self>>), Faillable(Result<Box<Self>, String>), StrPointer(StrPointer), Pointer(*const Self), PointerMut(*mut Self), ArcPointer(Arc<Box<Self>>), ArcMutexPointer(AppliesEq<Arc<Mutex<Box<Self>>>>), AsyncTask(AppliesEq<JoinHandle<Self>>), Sender(AppliesEq<UnboundedSender<Self>>), Listener(AppliesEq<UnboundedReceiver<Self>>), RuntimeRaw(AppliesEq<RawRTValue>),
}

Variants§

§

Int(i64)

§

U_Int(u64)

§

Float(f64)

§

Str(String)

§

Bool(bool)

§

Array(Vec<Self>)

§

Object(HashMap<String, Box<Self>>)

§

Faillable(Result<Box<Self>, String>)

§

StrPointer(StrPointer)

§

Pointer(*const Self)

§

PointerMut(*mut Self)

§

ArcPointer(Arc<Box<Self>>)

§

ArcMutexPointer(AppliesEq<Arc<Mutex<Box<Self>>>>)

§

AsyncTask(AppliesEq<JoinHandle<Self>>)

§

Sender(AppliesEq<UnboundedSender<Self>>)

§

Listener(AppliesEq<UnboundedReceiver<Self>>)

§

RuntimeRaw(AppliesEq<RawRTValue>)

Implementations§

Source§

impl BufValue

Source

pub fn type_of(&self) -> String

Source

pub fn display(&self) -> String

Source

pub fn get_vec_mut(&mut self) -> Option<&mut Vec<BufValue>>

Source

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

Source

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

Source

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

Trait Implementations§

Source§

impl Debug for BufValue

Source§

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

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

impl From<AppliesEq<JoinHandle<BufValue>>> for BufValue

Source§

fn from(item: AppliesEq<JoinHandle<Self>>) -> Self

Converts to this type from the input type.
Source§

impl From<BufValue> for RetBufValue

Source§

fn from(item: BufValue) -> Self

Converts to this type from the input type.
Source§

impl From<StrPointer> for BufValue

Source§

fn from(item: StrPointer) -> Self

Converts to this type from the input type.
Source§

impl From<String> for BufValue

Source§

fn from(item: String) -> Self

Converts to this type from the input type.
Source§

impl From<bool> for BufValue

Source§

fn from(item: bool) -> Self

Converts to this type from the input type.
Source§

impl From<f64> for BufValue

Source§

fn from(item: f64) -> Self

Converts to this type from the input type.
Source§

impl From<i64> for BufValue

Source§

fn from(item: i64) -> Self

Converts to this type from the input type.
Source§

impl From<u64> for BufValue

Source§

fn from(item: u64) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for BufValue

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Send for BufValue

Source§

impl StructuralPartialEq for BufValue

Source§

impl Sync for BufValue

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<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<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

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

Source§

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.