pub struct Meta {
pub key: MetadataKey,
pub ptr_depth: u8,
pub is_type: bool,
}Fields§
§key: MetadataKey§ptr_depth: u8§is_type: boolImplementations§
source§impl Meta
impl Meta
pub fn new(key: MetadataKey, pdepth: u8, is_type: bool) -> Meta
pub fn with_type( v: MetadataType, metas: &mut PiggyVec<MetadataKey, MetadataType> ) -> Meta
pub fn new_array( elem_meta: Meta, size: usize, metas: &mut PiggyVec<MetadataKey, MetadataType> ) -> Meta
pub fn new_slice( val_meta: Meta, metas: &mut PiggyVec<MetadataKey, MetadataType> ) -> Meta
pub fn new_map( kmeta: Meta, vmeta: Meta, metas: &mut PiggyVec<MetadataKey, MetadataType> ) -> Meta
pub fn new_interface( fields: Fields, metas: &mut PiggyVec<MetadataKey, MetadataType> ) -> Meta
pub fn new_channel( typ: ChannelType, val_meta: Meta, metas: &mut PiggyVec<MetadataKey, MetadataType> ) -> Meta
pub fn new_sig( recv: Option<Meta>, params: Vec<Meta, Global>, results: Vec<Meta, Global>, variadic: Option<(Meta, Meta)>, metas: &mut PiggyVec<MetadataKey, MetadataType> ) -> Meta
pub fn new_named( underlying: Meta, metas: &mut PiggyVec<MetadataKey, MetadataType> ) -> Meta
pub fn mtype_unwraped<'a>( &self, metas: &'a PiggyVec<MetadataKey, MetadataType> ) -> &'a MetadataType
pub fn ptr_to(&self) -> Meta
pub fn unptr_to(&self) -> Meta
pub fn into_type_category(self) -> Meta
pub fn into_value_category(self) -> Meta
pub fn value_type( &self, metas: &PiggyVec<MetadataKey, MetadataType> ) -> ValueType
pub fn field_indices( &self, name: &str, metas: &PiggyVec<MetadataKey, MetadataType> ) -> Vec<usize, Global>
pub fn underlying(&self, metas: &PiggyVec<MetadataKey, MetadataType>) -> Meta
pub fn recv_meta_key(&self) -> MetadataKey
pub fn add_method( &self, name: String, pointer_recv: bool, metas: &mut PiggyVec<MetadataKey, MetadataType> )
pub fn set_method_code( &self, name: &String, func: FunctionKey, metas: &mut PiggyVec<MetadataKey, MetadataType> )
sourcepub fn get_iface_binding(
&self,
name: &String,
metas: &PiggyVec<MetadataKey, MetadataType>
) -> Option<IfaceBinding>
pub fn get_iface_binding( &self, name: &String, metas: &PiggyVec<MetadataKey, MetadataType> ) -> Option<IfaceBinding>
Depth-first search for method by name
pub fn get_method( &self, index: i32, metas: &PiggyVec<MetadataKey, MetadataType> ) -> Rc<RefCell<MethodDesc>>
pub fn identical( &self, other: &Meta, metas: &PiggyVec<MetadataKey, MetadataType> ) -> bool
Trait Implementations§
source§impl Ord for Meta
impl Ord for Meta
source§impl PartialEq<Meta> for Meta
impl PartialEq<Meta> for Meta
source§impl PartialOrd<Meta> for Meta
impl PartialOrd<Meta> for Meta
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more