[−][src]Struct rustypy::pytypes::pystring::PyString
An analog of a Python string.
Read the module docs for more information.
Methods
impl PyString
[src]
pub unsafe fn from_ptr(ptr: *mut PyString) -> PyString
[src]
pub unsafe fn from_ptr_to_string(ptr: *mut PyString) -> String
[src]
pub fn into_raw(self) -> *mut PyString
[src]
Returns PyString as a raw pointer. Use this whenever you want to return a PyString to Python.
pub unsafe fn from_raw(ptr: *const c_char) -> PyString
[src]
Return a PyString from a raw char pointer.
Trait Implementations
impl AsRef<PyString> for PyArg
[src]
impl Clone for PyString
[src]
impl Debug for PyString
[src]
impl Display for PyString
[src]
impl Eq for PyString
[src]
impl<'a> From<&'a str> for PyString
[src]
impl From<PyArg> for PyString
[src]
impl From<PyString> for String
[src]
impl From<PyString> for PyArg
[src]
impl From<String> for PyString
[src]
impl Hash for PyString
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<PyString> for PyString
[src]
impl StructuralEq for PyString
[src]
impl StructuralPartialEq for PyString
[src]
Auto Trait Implementations
impl RefUnwindSafe for PyString
impl Send for PyString
impl Sync for PyString
impl Unpin for PyString
impl UnwindSafe for PyString
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,