Enum guppy::graph::GitReq [−][src]
A Cargo.toml
specification for a Git branch, tag, or revision.
For more, including examples, see the documentation for ExternalSource::Git
.
Variants (Non-exhaustive)
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Branch(&'g str)
A branch, e.g. "main"
.
This is specified in Cargo.toml
as:
[dependencies]
cargo = { git = "...", branch = "main" }
Tag(&'g str)
A tag, e.g. "guppy-0.5.0"
.
This is specified in Cargo.toml
as:
[dependencies]
guppy = { git = "...", tag = "guppy-0.5.0" }
Rev(&'g str)
A revision (commit hash), e.g. "0227f048fcb7c798026ede6cc20c92befc84c3a4"
.
This is specified in Cargo.toml
as:
[dependencies]
cargo = { git = "...", rev = "0227f048fcb7c798026ede6cc20c92befc84c3a4" }
Not specified in Cargo.toml
. Cargo treats this as the main branch by default.
[dependencies]
cargo = { git = "..." }
Trait Implementations
impl<'g> Clone for GitReq<'g>
[src]
impl<'g> Copy for GitReq<'g>
[src]
impl<'g> Debug for GitReq<'g>
[src]
impl<'g> Eq for GitReq<'g>
[src]
impl<'g> Hash for GitReq<'g>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'g> PartialEq<GitReq<'g>> for GitReq<'g>
[src]
impl<'g> StructuralEq for GitReq<'g>
[src]
impl<'g> StructuralPartialEq for GitReq<'g>
[src]
Auto Trait Implementations
impl<'g> RefUnwindSafe for GitReq<'g>
[src]
impl<'g> Send for GitReq<'g>
[src]
impl<'g> Sync for GitReq<'g>
[src]
impl<'g> Unpin for GitReq<'g>
[src]
impl<'g> UnwindSafe for GitReq<'g>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<'a, T> DefaultFeatures<'a> for T where
T: 'a + Clone + Send + Sync,
[src]
T: 'a + Clone + Send + Sync,
pub fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a, Global>
[src]
pub fn self_address_mut(&mut self) -> *mut ()
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<'a, T> NonSyncFeatures<'a> for T where
T: 'a + Clone,
[src]
T: 'a + Clone,
pub fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a, Global>
[src]
pub fn self_address_mut(&mut self) -> *mut ()
[src]
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> SafeBorrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_replacement(ptr: &T) -> &T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,