Struct mirror_mirror::type_info::StructType
source · pub struct StructType<'a> { /* private fields */ }Implementations§
source§impl<'a> StructType<'a>
impl<'a> StructType<'a>
pub fn type_name(self) -> &'a str
pub fn field_types(self) -> impl Iterator<Item = NamedField<'a>>
pub fn field_type(self, name: &str) -> Option<NamedField<'a>>
pub fn field_type_at(self, index: usize) -> Option<NamedField<'a>>
pub fn into_type_descriptor(self) -> TypeDescriptor
pub fn default_value(self) -> Option<Value>
Trait Implementations§
source§impl<'a> Clone for StructType<'a>
impl<'a> Clone for StructType<'a>
source§fn clone(&self) -> StructType<'a>
fn clone(&self) -> StructType<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more