MCPcopy Create free account
hub / github.com/dgrunwald/rust-cpython / as_basestring

Method as_basestring

src/objects/string.rs:380–382  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

378 #[cfg(feature = "python27-sys")]
379 #[inline]
380 pub fn as_basestring(&self) -> &PyString {
381 unsafe { self.0.unchecked_cast_as() }
382 }
383
384 /// Converts from `PyBytes` to `PyString`.
385 /// This method is only available on Python 2.

Callers

nothing calls this directly

Calls 1

unchecked_cast_asMethod · 0.80

Tested by

no test coverage detected