pub struct VariableId(/* private fields */);
Implementations§
Source§impl VariableId
impl VariableId
pub const fn is_valid(_: &str) -> bool
pub fn try_create<Id>(id: Id) -> Result<VariableId, InvalidVariableId>
pub const fn unsafe_create(id: &'static str) -> VariableId
Trait Implementations§
Source§impl AsRef<str> for VariableId
impl AsRef<str> for VariableId
Source§impl Clone for VariableId
impl Clone for VariableId
Source§fn clone(&self) -> VariableId
fn clone(&self) -> VariableId
Returns a duplicate 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 VariableId
impl Debug for VariableId
Source§impl Hash for VariableId
impl Hash for VariableId
Source§impl Ord for VariableId
impl Ord for VariableId
Source§fn cmp(&self, other: &VariableId) -> Ordering
fn cmp(&self, other: &VariableId) -> Ordering
1.21.0 · 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 VariableId
impl PartialEq for VariableId
Source§impl PartialOrd for VariableId
impl PartialOrd for VariableId
impl Eq for VariableId
impl StructuralPartialEq for VariableId
Auto Trait Implementations§
impl Freeze for VariableId
impl RefUnwindSafe for VariableId
impl Send for VariableId
impl Sync for VariableId
impl Unpin for VariableId
impl UnwindSafe for VariableId
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