pub enum RefCategory {
Engine,
Editor,
Netstandard,
PlaybackIos,
PlaybackAndroid,
PlaybackStandalone,
Project,
}Variants§
Implementations§
Source§impl RefCategory
impl RefCategory
Sourcepub const ALL: [RefCategory; 7]
pub const ALL: [RefCategory; 7]
All variants in the canonical iteration order used by LockfileIO::write.
Adding a new variant has to update both the array literal AND the
length below; the const assertion ties them together so a forgotten array
entry fails compilation. The exhaustive match in as_section/from_section
catches the variant on the first build attempt; this assertion catches it
on the second (when the developer updates the match but forgets the array).
Sourcepub const COUNT: usize
pub const COUNT: usize
Number of variants. Bumping this is enforced by the array literal above — the array length must match this constant or compilation fails.
pub fn as_section(self) -> &'static str
pub fn from_section(name: &str) -> Option<Self>
Trait Implementations§
Source§impl Clone for RefCategory
impl Clone for RefCategory
Source§fn clone(&self) -> RefCategory
fn clone(&self) -> RefCategory
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 RefCategory
impl Debug for RefCategory
Source§impl Hash for RefCategory
impl Hash for RefCategory
Source§impl Ord for RefCategory
impl Ord for RefCategory
Source§fn cmp(&self, other: &RefCategory) -> Ordering
fn cmp(&self, other: &RefCategory) -> Ordering
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
Source§impl PartialEq for RefCategory
impl PartialEq for RefCategory
Source§fn eq(&self, other: &RefCategory) -> bool
fn eq(&self, other: &RefCategory) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for RefCategory
impl PartialOrd for RefCategory
impl Copy for RefCategory
impl Eq for RefCategory
impl StructuralPartialEq for RefCategory
Auto Trait Implementations§
impl Freeze for RefCategory
impl RefUnwindSafe for RefCategory
impl Send for RefCategory
impl Sync for RefCategory
impl Unpin for RefCategory
impl UnsafeUnpin for RefCategory
impl UnwindSafe for RefCategory
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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