pub enum PythonStringKind {
String,
RawString,
FormatString,
TemplateString,
}Expand description
Python string literal kind metadata.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for PythonStringKind
impl Clone for PythonStringKind
Source§fn clone(&self) -> PythonStringKind
fn clone(&self) -> PythonStringKind
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 PythonStringKind
impl Debug for PythonStringKind
Source§impl Display for PythonStringKind
impl Display for PythonStringKind
Source§impl FromStr for PythonStringKind
impl FromStr for PythonStringKind
Source§type Err = PythonValueParseError
type Err = PythonValueParseError
The associated error which can be returned from parsing.
Source§fn from_str(
input: &str,
) -> Result<PythonStringKind, <PythonStringKind as FromStr>::Err>
fn from_str( input: &str, ) -> Result<PythonStringKind, <PythonStringKind as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for PythonStringKind
impl Hash for PythonStringKind
Source§impl Ord for PythonStringKind
impl Ord for PythonStringKind
Source§fn cmp(&self, other: &PythonStringKind) -> Ordering
fn cmp(&self, other: &PythonStringKind) -> 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 PythonStringKind
impl PartialEq for PythonStringKind
Source§fn eq(&self, other: &PythonStringKind) -> bool
fn eq(&self, other: &PythonStringKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PythonStringKind
impl PartialOrd for PythonStringKind
impl Copy for PythonStringKind
impl Eq for PythonStringKind
impl StructuralPartialEq for PythonStringKind
Auto Trait Implementations§
impl Freeze for PythonStringKind
impl RefUnwindSafe for PythonStringKind
impl Send for PythonStringKind
impl Sync for PythonStringKind
impl Unpin for PythonStringKind
impl UnsafeUnpin for PythonStringKind
impl UnwindSafe for PythonStringKind
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