pub struct NopClassPath;
Expand description
A class path that does nothing.
This is used as a type place holder when an empry collection of class paths is required.
See NopClassPath::EMPTY
.
Implementations§
Source§impl NopClassPath
impl NopClassPath
Sourcepub const EMPTY: [NopClassPath; 0]
pub const EMPTY: [NopClassPath; 0]
An empty class path.
Trait Implementations§
Source§impl ClassPath for NopClassPath
impl ClassPath for NopClassPath
Source§impl ClassRefs for NopClassPath
impl ClassRefs for NopClassPath
Source§fn class_refs(&self) -> HashSet<ClassRef>
fn class_refs(&self) -> HashSet<ClassRef>
Available on crate feature
unstable-project-analyses
only.List all classes.
Auto Trait Implementations§
impl Freeze for NopClassPath
impl RefUnwindSafe for NopClassPath
impl Send for NopClassPath
impl Sync for NopClassPath
impl Unpin for NopClassPath
impl UnwindSafe for NopClassPath
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> 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