pub struct ModuleId { /* private fields */ }Implementations§
Source§impl ModuleId
impl ModuleId
pub fn new(name: &str) -> ModuleId
pub fn dep_from_module(module: &ModuleId, dep_name: &str) -> ModuleId
pub fn new_with_url(name: &str, module_url_path: &str) -> ModuleId
pub fn new_from_components( name: String, version: Option<BumpVersion>, module_url_path: Option<String>, ) -> ModuleId
pub fn set_url_path(&mut self, url_path: &str)
pub fn module_name(&self) -> &str
pub fn version(&self) -> Option<BumpVersion>
Sourcepub fn module_full_name(&self) -> String
pub fn module_full_name(&self) -> String
Return full module name including version if any.
pub fn download_url(&self) -> String
Trait Implementations§
impl Eq for ModuleId
Source§impl Ord for ModuleId
impl Ord for ModuleId
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 PartialOrd for ModuleId
impl PartialOrd for ModuleId
impl StructuralPartialEq for ModuleId
Auto Trait Implementations§
impl Freeze for ModuleId
impl RefUnwindSafe for ModuleId
impl Send for ModuleId
impl Sync for ModuleId
impl Unpin for ModuleId
impl UnsafeUnpin for ModuleId
impl UnwindSafe for ModuleId
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.