pub struct HeaderDeclarations<D>(pub Vec<D>);Expand description
Semicolon-terminated declarations parsed from one section header.
Available with program-image-execution. D selects the declarations that
the application accepts, such as device directives and program metadata.
Whitespace and line comments may separate declarations; empty headers are
valid. Consumers apply each declaration to their own preparation context
and decide which declarations are required and when to resolve dependencies.
This collection imposes no lowering or image-construction policy.
Tuple Fields§
§0: Vec<D>Trait Implementations§
Source§impl<D: Clone> Clone for HeaderDeclarations<D>
impl<D: Clone> Clone for HeaderDeclarations<D>
Source§fn clone(&self) -> HeaderDeclarations<D>
fn clone(&self) -> HeaderDeclarations<D>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<D: Debug> Debug for HeaderDeclarations<D>
impl<D: Debug> Debug for HeaderDeclarations<D>
Source§impl<D> FromText for HeaderDeclarations<D>where
for<'src> D: Parse<'src>,
impl<D> FromText for HeaderDeclarations<D>where
for<'src> D: Parse<'src>,
Source§impl<D> IntoIterator for HeaderDeclarations<D>
impl<D> IntoIterator for HeaderDeclarations<D>
Source§impl<D: PartialEq> PartialEq for HeaderDeclarations<D>
impl<D: PartialEq> PartialEq for HeaderDeclarations<D>
impl<D> SstHeader for HeaderDeclarations<D>where
for<'src> D: Parse<'src>,
impl<D: PartialEq> StructuralPartialEq for HeaderDeclarations<D>
Auto Trait Implementations§
impl<D> Freeze for HeaderDeclarations<D>
impl<D> RefUnwindSafe for HeaderDeclarations<D>where
D: RefUnwindSafe,
impl<D> Send for HeaderDeclarations<D>where
D: Send,
impl<D> Sync for HeaderDeclarations<D>where
D: Sync,
impl<D> Unpin for HeaderDeclarations<D>where
D: Unpin,
impl<D> UnsafeUnpin for HeaderDeclarations<D>
impl<D> UnwindSafe for HeaderDeclarations<D>where
D: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<'src, T> IntoMaybe<'src, T> for Twhere
T: 'src,
impl<'src, T> IntoMaybe<'src, T> for Twhere
T: 'src,
impl<T> OrderedSeq<'_, T> for Twhere
T: Clone,
§impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
§type Iter<'a> = Once<&'a T>
where
T: 'a
type Iter<'a> = Once<&'a T> where T: 'a
An iterator over the items within this container, by reference.
§fn contains(&self, val: &T) -> boolwhere
T: PartialEq,
fn contains(&self, val: &T) -> boolwhere
T: PartialEq,
Check whether an item is contained within this sequence.
§fn to_maybe_ref<'b>(item: <T as Seq<'p, T>>::Item<'b>) -> Maybe<T, &'p T>where
'p: 'b,
fn to_maybe_ref<'b>(item: <T as Seq<'p, T>>::Item<'b>) -> Maybe<T, &'p T>where
'p: 'b,
Convert an item of the sequence into a [
MaybeRef].