pub struct StaticClauseLabel(/* private fields */);Expand description
Static gatekeep identifier.
Implementations§
Source§impl StaticClauseLabel
impl StaticClauseLabel
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<ClauseLabel>
pub fn to_owned_id(self) -> GatekeepResult<ClauseLabel>
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 StaticClauseLabel
impl Clone for StaticClauseLabel
Source§fn clone(&self) -> StaticClauseLabel
fn clone(&self) -> StaticClauseLabel
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 StaticClauseLabel
Source§impl Debug for StaticClauseLabel
impl Debug for StaticClauseLabel
impl Eq for StaticClauseLabel
Source§impl Hash for StaticClauseLabel
impl Hash for StaticClauseLabel
Source§impl Ord for StaticClauseLabel
impl Ord for StaticClauseLabel
Source§fn cmp(&self, other: &StaticClauseLabel) -> Ordering
fn cmp(&self, other: &StaticClauseLabel) -> 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 StaticClauseLabel
impl PartialEq for StaticClauseLabel
Source§impl PartialOrd for StaticClauseLabel
impl PartialOrd for StaticClauseLabel
impl StructuralPartialEq for StaticClauseLabel
Auto Trait Implementations§
impl Freeze for StaticClauseLabel
impl RefUnwindSafe for StaticClauseLabel
impl Send for StaticClauseLabel
impl Sync for StaticClauseLabel
impl Unpin for StaticClauseLabel
impl UnsafeUnpin for StaticClauseLabel
impl UnwindSafe for StaticClauseLabel
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