#[non_exhaustive]pub struct UpstreamState {
pub ahead: u32,
pub behind: u32,
pub upstream_branch: String,
}Expand description
Upstream-tracking branch comparison.
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.ahead: u32§behind: u32§upstream_branch: StringTrait Implementations§
Source§impl Clone for UpstreamState
impl Clone for UpstreamState
Source§fn clone(&self) -> UpstreamState
fn clone(&self) -> UpstreamState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UpstreamState
impl Debug for UpstreamState
Source§impl PartialEq for UpstreamState
impl PartialEq for UpstreamState
Source§fn eq(&self, other: &UpstreamState) -> bool
fn eq(&self, other: &UpstreamState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for UpstreamState
impl StructuralPartialEq for UpstreamState
Auto Trait Implementations§
impl Freeze for UpstreamState
impl RefUnwindSafe for UpstreamState
impl Send for UpstreamState
impl Sync for UpstreamState
impl Unpin for UpstreamState
impl UnsafeUnpin for UpstreamState
impl UnwindSafe for UpstreamState
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> 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.