pub struct WordPressComponentIdentity { /* private fields */ }Implementations§
Source§impl WordPressComponentIdentity
impl WordPressComponentIdentity
pub fn core() -> Self
pub fn new( kind: WordPressComponentKind, slug: impl Into<String>, ) -> Result<Self, WordPressReviewError>
pub const fn kind(&self) -> WordPressComponentKind
pub fn slug(&self) -> &str
Trait Implementations§
Source§impl Clone for WordPressComponentIdentity
impl Clone for WordPressComponentIdentity
Source§fn clone(&self) -> WordPressComponentIdentity
fn clone(&self) -> WordPressComponentIdentity
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 WordPressComponentIdentity
impl Debug for WordPressComponentIdentity
impl Eq for WordPressComponentIdentity
Source§impl Ord for WordPressComponentIdentity
impl Ord for WordPressComponentIdentity
Source§fn cmp(&self, other: &WordPressComponentIdentity) -> Ordering
fn cmp(&self, other: &WordPressComponentIdentity) -> 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 PartialOrd for WordPressComponentIdentity
impl PartialOrd for WordPressComponentIdentity
impl StructuralPartialEq for WordPressComponentIdentity
Auto Trait Implementations§
impl Freeze for WordPressComponentIdentity
impl RefUnwindSafe for WordPressComponentIdentity
impl Send for WordPressComponentIdentity
impl Sync for WordPressComponentIdentity
impl Unpin for WordPressComponentIdentity
impl UnsafeUnpin for WordPressComponentIdentity
impl UnwindSafe for WordPressComponentIdentity
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more