pub struct Meta {
pub key: MetadataKey,
pub ptr_depth: u8,
pub is_type: bool,
}
Fields§
§key: MetadataKey
§ptr_depth: u8
§is_type: bool
Implementations§
source§impl Meta
impl Meta
pub fn new(key: MetadataKey, pdepth: u8, is_type: bool) -> Meta
pub fn with_type(v: MetadataType, metas: &mut MetadataObjs) -> Meta
pub fn new_array(elem_meta: Meta, size: usize, metas: &mut MetadataObjs) -> Meta
pub fn new_slice(val_meta: Meta, metas: &mut MetadataObjs) -> Meta
pub fn new_map(kmeta: Meta, vmeta: Meta, metas: &mut MetadataObjs) -> Meta
pub fn new_interface(fields: Fields, metas: &mut MetadataObjs) -> Meta
pub fn new_channel( typ: ChannelType, val_meta: Meta, metas: &mut MetadataObjs ) -> Meta
pub fn new_sig( recv: Option<Meta>, params: Vec<Meta>, results: Vec<Meta>, variadic: Option<(Meta, Meta)>, metas: &mut MetadataObjs ) -> Meta
pub fn new_named(underlying: Meta, metas: &mut MetadataObjs) -> Meta
pub fn mtype_unwraped<'a>(&self, metas: &'a MetadataObjs) -> &'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: &MetadataObjs) -> ValueType
pub fn field_indices(&self, name: &str, metas: &MetadataObjs) -> Vec<usize>
pub fn underlying(&self, metas: &MetadataObjs) -> Meta
pub fn recv_meta_key(&self) -> MetadataKey
pub fn add_method( &self, name: String, pointer_recv: bool, metas: &mut MetadataObjs )
pub fn set_method_code( &self, name: &String, func: FunctionKey, metas: &mut MetadataObjs )
sourcepub fn get_iface_binding(
&self,
name: &String,
metas: &MetadataObjs
) -> Option<IfaceBinding>
pub fn get_iface_binding( &self, name: &String, metas: &MetadataObjs ) -> Option<IfaceBinding>
Depth-first search for method by name
pub fn get_method( &self, index: OpIndex, metas: &MetadataObjs ) -> Rc<RefCell<MethodDesc>>
pub fn identical(&self, other: &Self, metas: &MetadataObjs) -> 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 moreimpl Copy for Meta
impl Eq for Meta
impl StructuralEq for Meta
impl StructuralPartialEq for Meta
Auto Trait Implementations§
impl RefUnwindSafe for Meta
impl Send for Meta
impl Sync for Meta
impl Unpin for Meta
impl UnwindSafe for Meta
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more