Struct smpl::interpreter::Struct [−][src]
pub struct Struct(_);
Methods
impl Struct
[src]
impl Struct
pub fn new() -> Struct
[src]
pub fn new() -> Struct
pub fn set_field(&mut self, name: String, v: Value) -> Option<Value>
[src]
pub fn set_field(&mut self, name: String, v: Value) -> Option<Value>
pub fn get_field(&self, name: &str) -> Option<Value>
[src]
pub fn get_field(&self, name: &str) -> Option<Value>
pub fn ref_field(&self, name: &str) -> Option<Rc<RefCell<Value>>>
[src]
pub fn ref_field(&self, name: &str) -> Option<Rc<RefCell<Value>>>
pub fn fields(
&self
) -> impl Iterator<Item = (&str, Rc<RefCell<Value>>)>
[src]
pub fn fields(
&self
) -> impl Iterator<Item = (&str, Rc<RefCell<Value>>)>
Trait Implementations
impl Debug for Struct
[src]
impl Debug for Struct
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Struct
[src]
impl Clone for Struct
fn clone(&self) -> Struct
[src]
fn clone(&self) -> Struct
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for Struct
[src]
impl PartialEq for Struct