[−][src]Struct spirq::Manifest
A set of information used to describe variable typing and routing.
Methods
impl Manifest
[src]
pub fn merge(&mut self, other: &Manifest) -> Result<()>
[src]
Merge metadata records in another manifest into the current one IN
ORDER. Inputs of the current manifest will kept; outputs will be
replaced by the other
's; and descriptors will be aggregated to contain
both set of metadata.
pub fn get_input<'a>(&'a self, location: InterfaceLocation) -> Option<&'a Type>
[src]
Get the input interface variable type.
pub fn get_output<'a>(&'a self, location: InterfaceLocation) -> Option<&'a Type>
[src]
Get the output interface variable type.
pub fn get_desc<'a>(
&'a self,
desc_bind: DescriptorBinding
) -> Option<&'a DescriptorType>
[src]
&'a self,
desc_bind: DescriptorBinding
) -> Option<&'a DescriptorType>
Get the descriptor type at the given descriptor binding point.
pub fn get_input_name<'a>(
&'a self,
location: InterfaceLocation
) -> Option<&'a str>
[src]
&'a self,
location: InterfaceLocation
) -> Option<&'a str>
Get the name that also refers to the input at the given location.
pub fn get_output_name<'a>(
&'a self,
location: InterfaceLocation
) -> Option<&'a str>
[src]
&'a self,
location: InterfaceLocation
) -> Option<&'a str>
Get the name that also refers to the output at the given location.
pub fn get_desc_name<'a>(
&'a self,
desc_bind: DescriptorBinding
) -> Option<&'a str>
[src]
&'a self,
desc_bind: DescriptorBinding
) -> Option<&'a str>
Get the name that also refers to the descriptor at the given descriptor binding.
pub fn get_desc_access(
&self,
desc_bind: DescriptorBinding
) -> Option<AccessType>
[src]
&self,
desc_bind: DescriptorBinding
) -> Option<AccessType>
Get the access pattern of the descriptor at the given descriptor binding.
pub fn resolve_input<S: AsRef<Sym>>(
&self,
sym: S
) -> Option<InterfaceVariableResolution>
[src]
&self,
sym: S
) -> Option<InterfaceVariableResolution>
Get the metadata of a input variable identified by a symbol.
pub fn resolve_output<S: AsRef<Sym>>(
&self,
sym: S
) -> Option<InterfaceVariableResolution>
[src]
&self,
sym: S
) -> Option<InterfaceVariableResolution>
Get the metadata of a output variable identified by a symbol.
pub fn resolve_desc<S: AsRef<Sym>>(
&self,
sym: S
) -> Option<DescriptorResolution>
[src]
&self,
sym: S
) -> Option<DescriptorResolution>
Get the metadata of a descriptor variable identified by a symbol. If the exact variable cannot be resolved, the descriptor part of the resolution will still be returned, if possible.
pub fn inputs<'a>(
&'a self
) -> impl Iterator<Item = InterfaceVariableResolution<'a>>
[src]
&'a self
) -> impl Iterator<Item = InterfaceVariableResolution<'a>>
List all input locations
pub fn outputs<'a>(
&'a self
) -> impl Iterator<Item = InterfaceVariableResolution<'a>>
[src]
&'a self
) -> impl Iterator<Item = InterfaceVariableResolution<'a>>
List all output locations in this manifest.
pub fn descs<'a>(&'a self) -> impl Iterator<Item = DescriptorResolution<'a>>
[src]
List all descriptors in this manifest. Results will not contain anything about exact variables in buffers.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Manifest
impl Send for Manifest
impl Sync for Manifest
impl Unpin for Manifest
impl UnwindSafe for Manifest
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<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.
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>,