Struct public_api::PublicItem
source · pub struct PublicItem { /* private fields */ }
Expand description
Implementations§
source§impl PublicItem
impl PublicItem
sourcepub fn grouping_cmp(&self, other: &Self) -> Ordering
pub fn grouping_cmp(&self, other: &Self) -> Ordering
Special version of cmp
that is used to sort public items in a way that
makes them grouped logically. For example, struct fields will be put
right after the struct they are part of.
Trait Implementations§
source§impl Clone for PublicItem
impl Clone for PublicItem
source§fn clone(&self) -> PublicItem
fn clone(&self) -> PublicItem
Returns a copy 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 Debug for PublicItem
impl Debug for PublicItem
We want pretty-printing ("{:#?}"
) of crate::diff::PublicApiDiff
to print
each public item as Display
, so implement Debug
with Display
.
source§impl Display for PublicItem
impl Display for PublicItem
One of the basic uses cases is printing a sorted Vec
of PublicItem
s. So
we implement Display
for it.
source§impl Hash for PublicItem
impl Hash for PublicItem
source§impl PartialEq for PublicItem
impl PartialEq for PublicItem
impl Eq for PublicItem
Auto Trait Implementations§
impl Freeze for PublicItem
impl RefUnwindSafe for PublicItem
impl Send for PublicItem
impl Sync for PublicItem
impl Unpin for PublicItem
impl UnwindSafe for PublicItem
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)