Trait PyBytesMethods
pub trait PyBytesMethods<'py>: Sealed {
// Required method
fn as_bytes(&self) -> &[u8] ⓘ;
}
Available on crate features
dep_pyo3
and std
only.Expand description
Implementation of functionality for PyBytes
.
These methods are defined for the Bound<'py, PyBytes>
smart pointer, so to use method call
syntax these methods are separated into a trait, because stable Rust does not yet support
arbitrary_self_types
.