#[non_exhaustive]pub struct Package<S> {
pub name: S,
pub version: S,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: S§version: STrait Implementations§
Auto Trait Implementations§
impl<S> Freeze for Package<S>where
S: Freeze,
impl<S> RefUnwindSafe for Package<S>where
S: RefUnwindSafe,
impl<S> Send for Package<S>where
S: Send,
impl<S> Sync for Package<S>where
S: Sync,
impl<S> Unpin for Package<S>where
S: Unpin,
impl<S> UnwindSafe for Package<S>where
S: 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