#[repr(C)]pub struct Type(/* private fields */);
Implementations§
Source§impl Type
impl Type
pub fn unit() -> Self
pub fn tuple(types: &[Self]) -> Self
pub fn primitive_str() -> Self
pub fn reference(&self) -> Self
pub fn reference_mut(&self) -> Self
pub fn dereference(&self) -> Self
pub fn get_function(&self, name: &str, sig: Signature) -> Function
pub fn data(&self) -> Data<Self>
Sourcepub fn get_tuple_type(&self, index: usize) -> Self
pub fn get_tuple_type(&self, index: usize) -> Self
Returns a Type from a Tuple
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl !Send for Type
impl !Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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