Struct ketos::value::StructDef
[−]
[src]
pub struct StructDef { /* fields omitted */ }
Represents the definition of a class of struct value
Methods
impl StructDef
[src]
fn new(name: Name, fields: NameMapSlice<Name>) -> StructDef
Creates a new StructDef
with the given name and fields.
fn field_index(&self, name: Name) -> Option<usize>
Returns the field index of the named field.
fn field_type(&self, name: Name) -> Option<Name>
Returns the type of the named field.
fn name(&self) -> Name
Returns the struct name.
fn fields(&self) -> &NameMapSlice<Name>
Returns the map of struct fields.
Trait Implementations
impl Clone for StructDef
[src]
fn clone(&self) -> StructDef
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more