pub struct PyString {
pub value: BString,
pub kind: Kind,
}Expand description
Represents a Python string object. Python supports many kinds of strings, this is why we use BString to represent the value.
It is basically a Vec
Fields§
§value: BString§kind: KindImplementations§
Trait Implementations§
impl Eq for PyString
impl StructuralPartialEq for PyString
Auto Trait Implementations§
impl Freeze for PyString
impl RefUnwindSafe for PyString
impl Send for PyString
impl Sync for PyString
impl Unpin for PyString
impl UnwindSafe for PyString
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
Source§impl<T> CallHasher for T
impl<T> CallHasher for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.