pub enum Major {
V1,
V2,
}Expand description
A major of the profile (v2 §2.17). The election is one text, which both share; each candidate stamps, answers a GET and is followed as its own revision’s major says.
Variants§
V1
redundancy.v1: the candidate’s session stamps every write, and a
follower reads the stamp’s id against meta.zid (v1 §2.10).
V2
redundancy.v2: no session stamp, and a follower reads the run its
descriptors state (v2 §2.10).
Implementations§
Source§impl Major
impl Major
Sourcepub const fn from_number(n: u32) -> Option<Major>
pub const fn from_number(n: u32) -> Option<Major>
The major numbered n, None for any this crate does not read.
Sourcepub fn of<'a>(uses: impl IntoIterator<Item = &'a IfaceId>) -> Option<Major>
pub fn of<'a>(uses: impl IntoIterator<Item = &'a IfaceId>) -> Option<Major>
The major a contract’s uses is read by, as a reader of both reads
it (v2 §2.2): redundancy.v2 where it lists it, redundancy.v1
where it lists that and not redundancy.v2, None where it lists
neither. One that lists both is redundancy.v2’s, which reads it
majors.
Trait Implementations§
impl Copy for Major
impl Eq for Major
Source§impl Ord for Major
impl Ord for Major
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 Major
impl PartialOrd for Major
impl StructuralPartialEq for Major
Auto Trait Implementations§
impl Forget for Major
impl Freeze for Major
impl Move for Major
impl RefUnwindSafe for Major
impl Send for Major
impl Sync for Major
impl Unpin for Major
impl UnsafeUnpin for Major
impl UnwindSafe for Major
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more