[−][src]Struct spirq::Specialization
Entry point specialization descriptions.
Implementations
impl Specialization
[src]
pub fn resolve_spec_const<S: AsRef<Sym>>(
&self,
sym: S
) -> Option<SpecConstantResolution<'_>>
[src]
&self,
sym: S
) -> Option<SpecConstantResolution<'_>>
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]
&'a self
) -> impl Iterator<Item = SpecConstantResolution<'a>>
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]
fn clone(&self) -> Specialization
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for Specialization
[src]
fn default() -> Specialization
[src]
Auto Trait Implementations
impl RefUnwindSafe for Specialization
impl Send for Specialization
impl Sync for Specialization
impl Unpin for Specialization
impl UnwindSafe for Specialization
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,
pub fn borrow_mut(&mut self) -> &mut 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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,