pub struct ConstantSymbol {
pub name: String,
}Expand description
A named constant in an algebraic signature.
Fields§
§name: StringImplementations§
Source§impl ConstantSymbol
impl ConstantSymbol
pub fn new(name: impl Into<String>) -> ConstantSymbol
Trait Implementations§
Source§impl Clone for ConstantSymbol
impl Clone for ConstantSymbol
Source§fn clone(&self) -> ConstantSymbol
fn clone(&self) -> ConstantSymbol
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 ConstantSymbol
impl Debug for ConstantSymbol
impl Eq for ConstantSymbol
Source§impl PartialEq for ConstantSymbol
impl PartialEq for ConstantSymbol
Source§fn eq(&self, other: &ConstantSymbol) -> bool
fn eq(&self, other: &ConstantSymbol) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConstantSymbol
Auto Trait Implementations§
impl Freeze for ConstantSymbol
impl RefUnwindSafe for ConstantSymbol
impl Send for ConstantSymbol
impl Sync for ConstantSymbol
impl Unpin for ConstantSymbol
impl UnsafeUnpin for ConstantSymbol
impl UnwindSafe for ConstantSymbol
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