Safety in rustc_ast::ast - Rust (original) (raw)
pub enum Safety {
Unsafe(Span),
Safe(Span),
Default,
}
Expand description
Safety of items.
unsafe
an item is explicitly marked as unsafe
.
safe
an item is explicitly marked as safe
.
Default means no value was provided, it will take a default value given the context in which is used.
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 12 bytes
Size for each variant:
Unsafe
: 8 bytesSafe
: 8 bytesDefault
: 0 bytes