#[repr(u8)]pub enum UnnamedAddr {
None = 0,
Global = 1,
Local = 2,
}Expand description
GlobalValue::UnnamedAddr
Variants§
None = 0
The address of the global is significant
Global = 1
The address of the global is not significant, but the global cannot be merged with other globals
Local = 2
The address of the global is not significant, and the global can be merged with other globals
Trait Implementations§
Source§impl Clone for UnnamedAddr
impl Clone for UnnamedAddr
Source§fn clone(&self) -> UnnamedAddr
fn clone(&self) -> UnnamedAddr
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UnnamedAddr
impl Debug for UnnamedAddr
Source§impl Default for UnnamedAddr
impl Default for UnnamedAddr
Source§fn default() -> UnnamedAddr
fn default() -> UnnamedAddr
Returns the “default value” for a type. Read more
Source§impl PartialEq for UnnamedAddr
impl PartialEq for UnnamedAddr
Source§impl TryFrom<u8> for UnnamedAddr
impl TryFrom<u8> for UnnamedAddr
Source§type Error = TryFromPrimitiveError<UnnamedAddr>
type Error = TryFromPrimitiveError<UnnamedAddr>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for UnnamedAddr
impl TryFromPrimitive for UnnamedAddr
const NAME: &'static str = "UnnamedAddr"
type Primitive = u8
type Error = TryFromPrimitiveError<UnnamedAddr>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for UnnamedAddr
impl Eq for UnnamedAddr
impl StructuralPartialEq for UnnamedAddr
Auto Trait Implementations§
impl Freeze for UnnamedAddr
impl RefUnwindSafe for UnnamedAddr
impl Send for UnnamedAddr
impl Sync for UnnamedAddr
impl Unpin for UnnamedAddr
impl UnsafeUnpin for UnnamedAddr
impl UnwindSafe for UnnamedAddr
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