#[repr(align(8))]
pub struct Struct { /* private fields */ }
Expand description

The innards of a struct.

Note that both types and actual constructed structs use the same representation. The difference is that types do not contain associated fields (Mica does not have static fields.)

Implementations

Creates a new Struct representing a type.

Returns a reference to the dispatch table of the struct.

Safety

Note that the reference’s lifetime does not match the struct’s. This is because the reference actually comes from the GC, but Struct does not have a lifetime parameter that would signify that.

Because the lifetime of the reference is not tracked, this function is unsafe.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.