pub struct TypeInfo {
pub borrowed: bool,
pub owned: bool,
pub error: bool,
pub has_list: bool,
pub has_resource: bool,
pub has_borrow_handle: bool,
pub has_own_handle: bool,
}
Fields§
§borrowed: bool
Whether this type is ever used (transitively) within the parameter of an imported function.
This means that it’s used in a context where ownership isn’t relinquished.
owned: bool
Whether this type is ever used (transitively) within the parameter or result of an export, or the result of an import.
This means that it’s used in a context where ownership is required and memory management is necessary.
error: bool
Whether this type is ever used (transitively) within the error case in the result of a function.
has_list: bool
Whether this type (transitively) has a list (or string).
has_resource: bool
Whether this type (transitively) has a resource (or handle).
has_borrow_handle: bool
Whether this type (transitively) has a borrow handle.
has_own_handle: bool
Whether this type (transitively) has an own handle.
Implementations§
Trait Implementations§
source§impl BitOrAssign for TypeInfo
impl BitOrAssign for TypeInfo
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moreimpl Copy for TypeInfo
Auto Trait Implementations§
impl Freeze for TypeInfo
impl RefUnwindSafe for TypeInfo
impl Send for TypeInfo
impl Sync for TypeInfo
impl Unpin for TypeInfo
impl UnwindSafe for TypeInfo
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)