Struct julia::api::datatype::Datatype
[−]
[src]
pub struct Datatype { /* fields omitted */ }
Methods
impl Datatype
[src]
fn new_struct<I>(&self, params: I) -> Result<Value> where
I: IntoIterator<Item = Value>,
[src]
I: IntoIterator<Item = Value>,
Creates a new Julia struct of this type.
fn new_array<I>(&self, params: I) -> Result<Array> where
I: IntoIterator<Item = Value>,
[src]
I: IntoIterator<Item = Value>,
Creates a new Julia array of this type.
fn new_bits<T: Into<Vec<u8>>>(&self, data: T) -> Result<Value>
[src]
Creates a new Julia primitive of this type.
fn any() -> Datatype
[src]
fn number() -> Datatype
[src]
fn signed() -> Datatype
[src]
fn abstract_float() -> Datatype
[src]
fn bool() -> Datatype
[src]
fn char() -> Datatype
[src]
fn int8() -> Datatype
[src]
fn uint8() -> Datatype
[src]
fn int16() -> Datatype
[src]
fn uint16() -> Datatype
[src]
fn int32() -> Datatype
[src]
fn uint32() -> Datatype
[src]
fn int64() -> Datatype
[src]
fn uint64() -> Datatype
[src]
fn float16() -> Datatype
[src]
fn float32() -> Datatype
[src]
fn float64() -> Datatype
[src]
fn void() -> Datatype
[src]
fn complex() -> Datatype
[src]
fn void_pointer() -> Datatype
[src]
fn pointer() -> Datatype
[src]
Trait Implementations
impl Clone for Datatype
[src]
fn clone(&self) -> Datatype
[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_datatype_t> for Datatype
[src]
unsafe fn new_unchecked(_inner: *mut jl_datatype_t) -> Datatype
[src]
Construct a new JlValue from a raw pointer obtained from Julia.
fn new(_inner: *mut jl_datatype_t) -> Result<Datatype>
[src]
Construct a new JlValue from a raw pointer obtained from Julia while previously validating it. Read more
fn lock(&self) -> Result<*mut jl_datatype_t>
[src]
Safely borrow the unique pointer to a inner jl_value. Read more
fn into_inner(self) -> Result<*mut jl_datatype_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 Datatype
[src]
impl Display for Datatype
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more