Struct spirq::Specialization[][src]

pub struct Specialization { /* fields omitted */ }

Entry point specialization descriptions.

Implementations

impl Specialization[src]

pub fn resolve_spec_const<S: AsRef<Sym>>(
    &self,
    sym: S
) -> Option<SpecConstantResolution<'_>>
[src]

pub fn get_spec_const_name<'a>(&'a self, spec_id: u32) -> Option<&'a str>[src]

Get the name that also refers to the specialization constant.

pub fn get_spec_const<'a>(&'a self, spec_id: u32) -> Option<&'a Type>[src]

Get the specialization constant type.

pub fn spec_consts<'a>(
    &'a self
) -> impl Iterator<Item = SpecConstantResolution<'a>>
[src]

List all specialization constants.

pub fn insert_spec_const(&mut self, spec_id: u32, ty: Type) -> Result<()>[src]

pub fn insert_spec_const_name(&mut self, name: &str, spec_id: u32) -> Result<()>[src]

Trait Implementations

impl Clone for Specialization[src]

impl Default for Specialization[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<T> From<T> for T[src]

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

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.