pub struct StringConstant(/* private fields */);
Implementations§
Source§impl StringConstant
impl StringConstant
pub fn new(string: String) -> Result<Self, InvalidStringError>
pub fn new_str(string: &str) -> Result<Self, InvalidStringError>
pub fn new_expect(string: String, expect_msg: &str) -> Self
pub fn new_str_expect(string: &str, expect_msg: &str) -> Self
pub fn string_constant(&self) -> &str
Trait Implementations§
Source§impl Clone for StringConstant
impl Clone for StringConstant
Source§fn clone(&self) -> StringConstant
fn clone(&self) -> StringConstant
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 StringConstant
impl Debug for StringConstant
Source§impl Display for StringConstant
impl Display for StringConstant
Source§impl From<StringConstant> for Sexpr
impl From<StringConstant> for Sexpr
Source§fn from(value: StringConstant) -> Self
fn from(value: StringConstant) -> Self
Converts to this type from the input type.
Source§impl From<StringConstant> for SpecialConstant
impl From<StringConstant> for SpecialConstant
Source§fn from(value: StringConstant) -> Self
fn from(value: StringConstant) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StringConstant
impl RefUnwindSafe for StringConstant
impl Send for StringConstant
impl Sync for StringConstant
impl Unpin for StringConstant
impl UnwindSafe for StringConstant
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