Struct fp_bindgen::types::CargoDependency
source · [−]pub struct CargoDependency {
pub git: Option<&'static str>,
pub branch: Option<&'static str>,
pub path: Option<&'static str>,
pub version: Option<&'static str>,
pub features: BTreeSet<&'static str>,
}
Expand description
Used for defining Cargo dependencies.
Fields
git: Option<&'static str>
branch: Option<&'static str>
path: Option<&'static str>
version: Option<&'static str>
features: BTreeSet<&'static str>
Implementations
sourceimpl CargoDependency
impl CargoDependency
sourcepub fn merge_or_replace_with(&self, other: &Self) -> Self
pub fn merge_or_replace_with(&self, other: &Self) -> Self
Merges or replaces this dependency with another.
The algorithm used attempts to reuse as much of the current dependency as possible, but treats the incoming dependency as leading in case of conflicts.
pub fn with_version(version: &'static str) -> Self
pub fn with_version_and_features(
version: &'static str,
features: BTreeSet<&'static str>
) -> Self
Trait Implementations
sourceimpl Clone for CargoDependency
impl Clone for CargoDependency
sourcefn clone(&self) -> CargoDependency
fn clone(&self) -> CargoDependency
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CargoDependency
impl Debug for CargoDependency
sourceimpl Default for CargoDependency
impl Default for CargoDependency
sourcefn default() -> CargoDependency
fn default() -> CargoDependency
Returns the “default value” for a type. Read more
sourceimpl Display for CargoDependency
impl Display for CargoDependency
sourceimpl Hash for CargoDependency
impl Hash for CargoDependency
sourceimpl PartialEq<CargoDependency> for CargoDependency
impl PartialEq<CargoDependency> for CargoDependency
sourcefn eq(&self, other: &CargoDependency) -> bool
fn eq(&self, other: &CargoDependency) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CargoDependency) -> bool
fn ne(&self, other: &CargoDependency) -> bool
This method tests for !=
.
impl Eq for CargoDependency
impl StructuralEq for CargoDependency
impl StructuralPartialEq for CargoDependency
Auto Trait Implementations
impl RefUnwindSafe for CargoDependency
impl Send for CargoDependency
impl Sync for CargoDependency
impl Unpin for CargoDependency
impl UnwindSafe for CargoDependency
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more