pub struct StaticSubjectSlot(/* private fields */);Expand description
Static gatekeep identifier.
Implementations§
Source§impl StaticSubjectSlot
impl StaticSubjectSlot
Sourcepub const fn new(value: &'static str) -> Self
pub const fn new(value: &'static str) -> Self
Creates a compile-time validated static identifier.
Sourcepub fn to_owned_id(self) -> GatekeepResult<SubjectSlot>
pub fn to_owned_id(self) -> GatekeepResult<SubjectSlot>
Converts this static identifier into its owned form.
§Errors
Returns GatekeepError::EmptyIdentifier if the static and
owned identifier validation rules have drifted apart.
Trait Implementations§
Source§impl Clone for StaticSubjectSlot
impl Clone for StaticSubjectSlot
Source§fn clone(&self) -> StaticSubjectSlot
fn clone(&self) -> StaticSubjectSlot
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 moreimpl Copy for StaticSubjectSlot
Source§impl Debug for StaticSubjectSlot
impl Debug for StaticSubjectSlot
impl Eq for StaticSubjectSlot
Source§impl Hash for StaticSubjectSlot
impl Hash for StaticSubjectSlot
Source§impl Ord for StaticSubjectSlot
impl Ord for StaticSubjectSlot
Source§fn cmp(&self, other: &StaticSubjectSlot) -> Ordering
fn cmp(&self, other: &StaticSubjectSlot) -> 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 PartialEq for StaticSubjectSlot
impl PartialEq for StaticSubjectSlot
Source§impl PartialOrd for StaticSubjectSlot
impl PartialOrd for StaticSubjectSlot
impl StructuralPartialEq for StaticSubjectSlot
Auto Trait Implementations§
impl Freeze for StaticSubjectSlot
impl RefUnwindSafe for StaticSubjectSlot
impl Send for StaticSubjectSlot
impl Sync for StaticSubjectSlot
impl Unpin for StaticSubjectSlot
impl UnsafeUnpin for StaticSubjectSlot
impl UnwindSafe for StaticSubjectSlot
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