Struct julia::api::value::Value
[−]
[src]
pub struct Value { /* fields omitted */ }
Methods
impl Value
[src]
fn nothing() -> Value
[src]
Nothing, Nil, Null, None.
fn map<T, F>(&self, f: F) -> Result<T> where
F: FnOnce(*mut jl_value_t) -> T,
[src]
F: FnOnce(*mut jl_value_t) -> T,
Applies function to the inner pointer.
fn map_or<T, F>(&self, f: F, optb: T) -> T where
F: FnOnce(*mut jl_value_t) -> T,
[src]
F: FnOnce(*mut jl_value_t) -> T,
Applies function to the inner pointer and returns a default value if its poisoned.
fn map_or_else<T, F, O>(&self, f: F, op: O) -> T where
F: FnOnce(*mut jl_value_t) -> T,
O: FnOnce(Error) -> T,
[src]
F: FnOnce(*mut jl_value_t) -> T,
O: FnOnce(Error) -> T,
Applies function to the inner pointer and executes a default function if its poisoned.
fn is_ok(&self) -> bool
[src]
Checks if the inner Mutex is poisoned.
fn isa(&self, other: &Datatype) -> Result<bool>
[src]
Checks if the Value is of a concrete Datatype.
fn types_equal(&self, other: &Value) -> Result<bool>
[src]
Checks if the types of two Values are equal.
fn is_nothing(&self) -> bool
[src]
Checks if the value is a nothing.
fn is_tuple(&self) -> bool
[src]
Checks if the value is a tuple.
fn is_svec(&self) -> bool
[src]
Checks if the value is a svec.
fn is_simplevector(&self) -> bool
[src]
Checks if the value is a simplevector.
fn is_datatype(&self) -> bool
[src]
Checks if the value is a datatype.
fn is_mutable(&self) -> bool
[src]
Checks if the value is a mutable.
fn is_mutable_datatype(&self) -> bool
[src]
Checks if the value is a mutable_datatype.
fn is_immutable(&self) -> bool
[src]
Checks if the value is a immutable.
fn is_immutable_datatype(&self) -> bool
[src]
Checks if the value is a immutable_datatype.
fn is_uniontype(&self) -> bool
[src]
Checks if the value is a uniontype.
fn is_typevar(&self) -> bool
[src]
Checks if the value is a typevar.
fn is_unionall(&self) -> bool
[src]
Checks if the value is a unionall.
fn is_typename(&self) -> bool
[src]
Checks if the value is a typename.
fn is_int8(&self) -> bool
[src]
Checks if the value is a int8.
fn is_int16(&self) -> bool
[src]
Checks if the value is a int16.
fn is_int32(&self) -> bool
[src]
Checks if the value is a int32.
fn is_int64(&self) -> bool
[src]
Checks if the value is a int64.
fn is_long(&self) -> bool
[src]
Checks if the value is a long.
fn is_uint8(&self) -> bool
[src]
Checks if the value is a uint8.
fn is_uint16(&self) -> bool
[src]
Checks if the value is a uint16.
fn is_uint32(&self) -> bool
[src]
Checks if the value is a uint32.
fn is_uint64(&self) -> bool
[src]
Checks if the value is a uint64.
fn is_ulong(&self) -> bool
[src]
Checks if the value is a ulong.
fn is_float16(&self) -> bool
[src]
Checks if the value is a float16.
fn is_float32(&self) -> bool
[src]
Checks if the value is a float32.
fn is_float64(&self) -> bool
[src]
Checks if the value is a float64.
fn is_bool(&self) -> bool
[src]
Checks if the value is a bool.
fn is_symbol(&self) -> bool
[src]
Checks if the value is a symbol.
fn is_ssavalue(&self) -> bool
[src]
Checks if the value is a ssavalue.
fn is_slot(&self) -> bool
[src]
Checks if the value is a slot.
fn is_expr(&self) -> bool
[src]
Checks if the value is a expr.
fn is_globalref(&self) -> bool
[src]
Checks if the value is a globalref.
fn is_labelnode(&self) -> bool
[src]
Checks if the value is a labelnode.
fn is_gotonode(&self) -> bool
[src]
Checks if the value is a gotonode.
fn is_quotenode(&self) -> bool
[src]
Checks if the value is a quotenode.
fn is_newvarnode(&self) -> bool
[src]
Checks if the value is a newvarnode.
fn is_linenode(&self) -> bool
[src]
Checks if the value is a linenode.
fn is_method_instance(&self) -> bool
[src]
Checks if the value is a method_instance.
fn is_code_info(&self) -> bool
[src]
Checks if the value is a code_info.
fn is_method(&self) -> bool
[src]
Checks if the value is a method.
fn is_module(&self) -> bool
[src]
Checks if the value is a module.
fn is_mtable(&self) -> bool
[src]
Checks if the value is a mtable.
fn is_task(&self) -> bool
[src]
Checks if the value is a task.
fn is_string(&self) -> bool
[src]
Checks if the value is a string.
fn is_cpointer(&self) -> bool
[src]
Checks if the value is a cpointer.
fn is_pointer(&self) -> bool
[src]
Checks if the value is a pointer.
fn is_intrinsic(&self) -> bool
[src]
Checks if the value is a intrinsic.
fn is_kind(&self) -> bool
[src]
Checks if the value is a kind.
fn is_type(&self) -> bool
[src]
Checks if the value is a type.
fn is_primitivetype(&self) -> bool
[src]
Checks if the value is a primitivetype.
fn is_structtype(&self) -> bool
[src]
Checks if the value is a structtype.
fn is_bits(&self) -> bool
[src]
Checks if the value is a bits.
fn is_abstracttype(&self) -> bool
[src]
Checks if the value is a abstracttype.
fn is_array_type(&self) -> bool
[src]
Checks if the value is a array_type.
fn is_array(&self) -> bool
[src]
Checks if the value is a array.
fn is_cpointer_type(&self) -> bool
[src]
Checks if the value is a cpointer_type.
fn is_abstract_ref_type(&self) -> bool
[src]
Checks if the value is a abstract_ref_type.
fn is_tuple_type(&self) -> bool
[src]
Checks if the value is a tuple_type.
fn is_vecelement_type(&self) -> bool
[src]
Checks if the value is a vecelement_type.
fn is_type_type(&self) -> bool
[src]
Checks if the value is a type_type.
fn is_vararg_type(&self) -> bool
[src]
Checks if the value is a vararg_type.
Trait Implementations
impl Clone for Value
[src]
fn clone(&self) -> Value
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl JlValue<jl_value_t> for Value
[src]
unsafe fn new_unchecked(_inner: *mut jl_value_t) -> Value
[src]
Construct a new JlValue from a raw pointer obtained from Julia.
fn new(_inner: *mut jl_value_t) -> Result<Value>
[src]
Construct a new JlValue from a raw pointer obtained from Julia while previously validating it. Read more
fn lock(&self) -> Result<*mut jl_value_t>
[src]
Safely borrow the unique pointer to a inner jl_value. Read more
fn into_inner(self) -> Result<*mut jl_value_t>
[src]
Take ownership of the inner jl_value. Read more
fn add_finalizer(&self, f: &Function) -> Result<()>
[src]
Add a finalizer, a function that will be run when the object is collected. Read more
fn finalize(self) -> Result<()>
[src]
Consume and finalize self.
fn typename(&self) -> Result<String>
[src]
Returns the name of the type.
fn datatype(&self) -> Result<Datatype>
[src]
Returns the type of the object as a Datatype.
fn get<S: IntoSymbol>(&self, field: S) -> Result<Value>
[src]
Returns the value of a field if it exists.
fn set<S: IntoSymbol>(&self, field: S, value: &Value) -> Result<()>
[src]
Sets the value of a field if it exists.
fn from_value<U, A: JlValue<U>>(val: A) -> Result<Self>
[src]
Constructs an object of type Self from another object that implements JlValue. Read more
fn into_value<U, A: JlValue<U>>(self) -> Result<A>
[src]
Consumes self and returns an object of another type with the same inner pointer. Read more
impl Debug for Value
[src]
impl Display for Value
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more