[−][src]Enum rustc_ap_rustc_target::asm::InlineAsmRegClass
Variants
X86(X86InlineAsmRegClass)
Arm(ArmInlineAsmRegClass)
AArch64(AArch64InlineAsmRegClass)
RiscV(RiscVInlineAsmRegClass)
Nvptx(NvptxInlineAsmRegClass)
Hexagon(HexagonInlineAsmRegClass)
Implementations
impl InlineAsmRegClass
[src]
pub fn name(self) -> &'static str
[src]
pub fn suggest_class(
self,
arch: InlineAsmArch,
ty: InlineAsmType
) -> Option<Self>
[src]
self,
arch: InlineAsmArch,
ty: InlineAsmType
) -> Option<Self>
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]
self,
arch: InlineAsmArch,
ty: InlineAsmType
) -> Option<(char, &'static str)>
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]
self,
arch: InlineAsmArch
) -> Option<(char, &'static str)>
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]
self,
arch: InlineAsmArch
) -> &'static [(InlineAsmType, Option<&'static str>)]
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]
fn clone(&self) -> InlineAsmRegClass
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<__CTX> HashStable<__CTX> for InlineAsmRegClass where
__CTX: HashStableContext,
[src]
__CTX: HashStableContext,
fn hash_stable(&self, __hcx: &mut __CTX, __hasher: &mut StableHasher)
[src]
impl PartialEq<InlineAsmRegClass> for InlineAsmRegClass
[src]
fn eq(&self, other: &InlineAsmRegClass) -> bool
[src]
fn ne(&self, other: &InlineAsmRegClass) -> bool
[src]
impl StructuralEq for InlineAsmRegClass
[src]
impl StructuralPartialEq for InlineAsmRegClass
[src]
Auto Trait Implementations
impl RefUnwindSafe for InlineAsmRegClass
impl Send for InlineAsmRegClass
impl Sync for InlineAsmRegClass
impl Unpin for InlineAsmRegClass
impl UnwindSafe for InlineAsmRegClass
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[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]
U: From<T>,
impl<T> MaybeResult<T> for T
[src]
type Error = !
fn from(Result<T, <T as MaybeResult<T>>::Error>) -> T
[src]
fn to_result(Self) -> Result<T, <T as MaybeResult<T>>::Error>
[src]
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,