[][src]Enum rustc_ap_rustc_target::asm::InlineAsmRegClass

Variants

Implementations

impl InlineAsmRegClass[src]

pub fn name(self) -> &'static str[src]

pub fn suggest_class(
    self,
    arch: InlineAsmArch,
    ty: InlineAsmType
) -> Option<Self>
[src]

Returns a suggested register class to use for this type. This is called after type checking via supported_types fails to give a better error message to the user.

pub fn suggest_modifier(
    self,
    arch: InlineAsmArch,
    ty: InlineAsmType
) -> Option<(char, &'static str)>
[src]

Returns a suggested template modifier to use for this type and an example of a register named formatted with it.

Such suggestions are useful if a type smaller than the full register size is used and a modifier can be used to point to the subregister of the correct size.

pub fn default_modifier(
    self,
    arch: InlineAsmArch
) -> Option<(char, &'static str)>
[src]

Returns the default modifier for this register and an example of a register named formatted with it.

This is only needed when the register class can suggest a modifier, so that the user can be shown how to get the default behavior without a warning.

pub fn supported_types(
    self,
    arch: InlineAsmArch
) -> &'static [(InlineAsmType, Option<&'static str>)]
[src]

Returns a list of supported types for this register class, each with a options target feature required to use this type.

pub fn parse(arch: InlineAsmArch, name: Symbol) -> Result<Self, &'static str>[src]

pub fn valid_modifiers(self, arch: InlineAsmArch) -> &'static [char][src]

Returns the list of template modifiers that can be used with this register class.

Trait Implementations

impl Clone for InlineAsmRegClass[src]

impl Copy for InlineAsmRegClass[src]

impl Debug for InlineAsmRegClass[src]

impl<__D: Decoder> Decodable<__D> for InlineAsmRegClass[src]

impl<__E: Encoder> Encodable<__E> for InlineAsmRegClass[src]

impl Eq for InlineAsmRegClass[src]

impl Hash for InlineAsmRegClass[src]

impl<__CTX> HashStable<__CTX> for InlineAsmRegClass where
    __CTX: HashStableContext
[src]

impl PartialEq<InlineAsmRegClass> for InlineAsmRegClass[src]

impl StructuralEq for InlineAsmRegClass[src]

impl StructuralPartialEq for InlineAsmRegClass[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'a, T> Captures<'a> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> MaybeResult<T> for T[src]

type Error = !

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,