pub struct Pid { /* private fields */ }Expand description
A unique hashable ID used to identify puppets.
Pid is similar to Id but includes an additional name_fn field that
provides a way to retrieve the name of the puppet type statically.
Implementations§
Source§impl Pid
impl Pid
Sourcepub fn new<P>() -> Selfwhere
P: Puppet,
pub fn new<P>() -> Selfwhere
P: Puppet,
Creates a new Pid instance for the given puppet type P.
This function generates a unique Pid based on the Id of the puppet
type P and assigns the _name function as the name_fn field.
§Panics
This function does not panic.
Trait Implementations§
Source§impl Ord for Pid
impl Ord for Pid
Source§impl PartialOrd for Pid
impl PartialOrd for Pid
impl Copy for Pid
impl Eq for Pid
Auto Trait Implementations§
impl Freeze for Pid
impl RefUnwindSafe for Pid
impl Send for Pid
impl Sync for Pid
impl Unpin for Pid
impl UnwindSafe for Pid
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.