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 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>, results: Vec<Meta>, 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>
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>, )
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
pub fn bind_with_iface( &self, value_meta: Meta, metas: &PiggyVec<MetadataKey, MetadataType>, ) -> (Meta, Vec<IfaceBinding>)
Trait Implementations§
Source§impl Ord for Meta
impl Ord for Meta
Source§impl PartialOrd for Meta
impl PartialOrd for Meta
impl Copy for Meta
impl Eq for Meta
impl StructuralPartialEq for Meta
Auto Trait Implementations§
impl Freeze for Meta
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