pub struct GlobalType { /* private fields */ }Expand description
A global type: content type plus mutability. (Boundary type; internal storage is IR.)
Implementations§
Source§impl GlobalType
impl GlobalType
pub fn new(content: ValType, mutability: Mutability) -> GlobalType
pub fn content(&self) -> &ValType
pub fn mutability(&self) -> Mutability
Trait Implementations§
Source§impl Clone for GlobalType
impl Clone for GlobalType
Source§impl Debug for GlobalType
impl Debug for GlobalType
impl Eq for GlobalType
Source§impl Hash for GlobalType
impl Hash for GlobalType
Source§impl PartialEq for GlobalType
impl PartialEq for GlobalType
impl StructuralPartialEq for GlobalType
Auto Trait Implementations§
impl Freeze for GlobalType
impl RefUnwindSafe for GlobalType
impl Send for GlobalType
impl Sync for GlobalType
impl Unpin for GlobalType
impl UnsafeUnpin for GlobalType
impl UnwindSafe for GlobalType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.