pub struct Declared {
pub capability: Capability,
pub status: Status,
pub backing: &'static str,
}Expand description
One line of a manifest: a capability, its status, and the crate behind it.
Fields§
§capability: CapabilityWhat.
status: StatusHow real.
backing: &'static strThe crate that implements it ("" when planned).
Implementations§
Source§impl Declared
impl Declared
Sourcepub const fn available(
capability: Capability,
backing: &'static str,
) -> Declared
pub const fn available( capability: Capability, backing: &'static str, ) -> Declared
A shipped capability backed by backing.
Sourcepub const fn preview(capability: Capability, backing: &'static str) -> Declared
pub const fn preview(capability: Capability, backing: &'static str) -> Declared
A demonstrable capability backed by backing.
Sourcepub const fn planned(capability: Capability) -> Declared
pub const fn planned(capability: Capability) -> Declared
An intended capability with no code behind it.
Trait Implementations§
impl Copy for Declared
impl Eq for Declared
impl StructuralPartialEq for Declared
Auto Trait Implementations§
impl Freeze for Declared
impl RefUnwindSafe for Declared
impl Send for Declared
impl Sync for Declared
impl Unpin for Declared
impl UnsafeUnpin for Declared
impl UnwindSafe for Declared
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