pub enum ProjectRef<Slug = CompactString> {
Id(ProjectId),
Slug(ProjectSlug<Slug>),
}Variants§
Id(ProjectId)
Slug(ProjectSlug<Slug>)
Implementations§
Trait Implementations§
Source§impl<Slug: Clone> Clone for ProjectRef<Slug>
impl<Slug: Clone> Clone for ProjectRef<Slug>
Source§fn clone(&self) -> ProjectRef<Slug>
fn clone(&self) -> ProjectRef<Slug>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Slug: Debug> Debug for ProjectRef<Slug>
impl<Slug: Debug> Debug for ProjectRef<Slug>
Source§impl<Slug: Hash> Hash for ProjectRef<Slug>
impl<Slug: Hash> Hash for ProjectRef<Slug>
Source§impl<Slug: Ord> Ord for ProjectRef<Slug>
impl<Slug: Ord> Ord for ProjectRef<Slug>
Source§fn cmp(&self, other: &ProjectRef<Slug>) -> Ordering
fn cmp(&self, other: &ProjectRef<Slug>) -> Ordering
1.21.0 · 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<Slug: PartialEq> PartialEq for ProjectRef<Slug>
impl<Slug: PartialEq> PartialEq for ProjectRef<Slug>
Source§impl<Slug: PartialOrd> PartialOrd for ProjectRef<Slug>
impl<Slug: PartialOrd> PartialOrd for ProjectRef<Slug>
impl<Slug: Copy> Copy for ProjectRef<Slug>
impl<Slug: Eq> Eq for ProjectRef<Slug>
impl<Slug> StructuralPartialEq for ProjectRef<Slug>
Auto Trait Implementations§
impl<Slug> Freeze for ProjectRef<Slug>where
Slug: Freeze,
impl<Slug> RefUnwindSafe for ProjectRef<Slug>where
Slug: RefUnwindSafe,
impl<Slug> Send for ProjectRef<Slug>where
Slug: Send,
impl<Slug> Sync for ProjectRef<Slug>where
Slug: Sync,
impl<Slug> Unpin for ProjectRef<Slug>where
Slug: Unpin,
impl<Slug> UnwindSafe for ProjectRef<Slug>where
Slug: UnwindSafe,
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