pub struct Declaration<'a> { /* private fields */ }Expand description
What a build script declares, before Declaration::emit writes it out.
Implementations§
Source§impl<'a> Declaration<'a>
impl<'a> Declaration<'a>
Sourcepub const fn demanding(self, demands: &'a [Demand]) -> Declaration<'a>
pub const fn demanding(self, demands: &'a [Demand]) -> Declaration<'a>
Adds the hardware the application cannot run without.
Trait Implementations§
Source§impl<'a> Clone for Declaration<'a>
impl<'a> Clone for Declaration<'a>
Source§fn clone(&self) -> Declaration<'a>
fn clone(&self) -> Declaration<'a>
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 moreimpl<'a> Copy for Declaration<'a>
Auto Trait Implementations§
impl<'a> Freeze for Declaration<'a>
impl<'a> RefUnwindSafe for Declaration<'a>
impl<'a> Send for Declaration<'a>
impl<'a> Sync for Declaration<'a>
impl<'a> Unpin for Declaration<'a>
impl<'a> UnsafeUnpin for Declaration<'a>
impl<'a> UnwindSafe for Declaration<'a>
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