Enum GoStringLiteralKind
pub enum GoStringLiteralKind {
Interpreted,
Raw,
}Expand description
Go string literal kind metadata.
Variants§
Implementations§
§impl GoStringLiteralKind
impl GoStringLiteralKind
Trait Implementations§
§impl Clone for GoStringLiteralKind
impl Clone for GoStringLiteralKind
§fn clone(&self) -> GoStringLiteralKind
fn clone(&self) -> GoStringLiteralKind
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 more§impl Debug for GoStringLiteralKind
impl Debug for GoStringLiteralKind
§impl Display for GoStringLiteralKind
impl Display for GoStringLiteralKind
§impl FromStr for GoStringLiteralKind
impl FromStr for GoStringLiteralKind
§type Err = GoValueParseError
type Err = GoValueParseError
The associated error which can be returned from parsing.
§fn from_str(
input: &str,
) -> Result<GoStringLiteralKind, <GoStringLiteralKind as FromStr>::Err>
fn from_str( input: &str, ) -> Result<GoStringLiteralKind, <GoStringLiteralKind as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for GoStringLiteralKind
impl Hash for GoStringLiteralKind
§impl Ord for GoStringLiteralKind
impl Ord for GoStringLiteralKind
§fn cmp(&self, other: &GoStringLiteralKind) -> Ordering
fn cmp(&self, other: &GoStringLiteralKind) -> 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
§impl PartialEq for GoStringLiteralKind
impl PartialEq for GoStringLiteralKind
§impl PartialOrd for GoStringLiteralKind
impl PartialOrd for GoStringLiteralKind
impl Copy for GoStringLiteralKind
impl Eq for GoStringLiteralKind
impl StructuralPartialEq for GoStringLiteralKind
Auto Trait Implementations§
impl Freeze for GoStringLiteralKind
impl RefUnwindSafe for GoStringLiteralKind
impl Send for GoStringLiteralKind
impl Sync for GoStringLiteralKind
impl Unpin for GoStringLiteralKind
impl UnsafeUnpin for GoStringLiteralKind
impl UnwindSafe for GoStringLiteralKind
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