#[non_exhaustive]pub struct RustDependency {
pub name: String,
pub features: Vec<String>,
}Expand description
A Rust dependency the generated code needs.
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: String§features: Vec<String>Implementations§
Trait Implementations§
Source§impl Clone for RustDependency
impl Clone for RustDependency
Source§impl Debug for RustDependency
impl Debug for RustDependency
impl Eq for RustDependency
Source§impl Ord for RustDependency
impl Ord for RustDependency
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for RustDependency
impl PartialEq for RustDependency
Source§impl PartialOrd for RustDependency
impl PartialOrd for RustDependency
impl StructuralPartialEq for RustDependency
Auto Trait Implementations§
impl Forget for RustDependency
impl Freeze for RustDependency
impl Move for RustDependency
impl RefUnwindSafe for RustDependency
impl Send for RustDependencywhere
RawVecInner: Send,
impl Sync for RustDependencywhere
RawVecInner: Sync,
impl Unpin for RustDependency
impl UnsafeUnpin for RustDependencywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for RustDependencywhere
RawVecInner: 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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.