Struct pen_ffi::ByteString
source · [−]#[repr(C)]pub struct ByteString { /* private fields */ }
Implementations
sourceimpl ByteString
impl ByteString
pub fn new(buffer: ArcBuffer) -> Self
pub fn empty() -> Self
pub fn as_slice(&self) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn join(&self, other: &Self) -> Self
pub fn char_slice(&self, start: Number, end: Number) -> Self
Trait Implementations
sourceimpl Clone for ByteString
impl Clone for ByteString
sourcefn clone(&self) -> ByteString
fn clone(&self) -> ByteString
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ByteString
impl Debug for ByteString
sourceimpl Default for ByteString
impl Default for ByteString
sourcefn default() -> ByteString
fn default() -> ByteString
Returns the “default value” for a type. Read more
sourceimpl From<ByteString> for Any
impl From<ByteString> for Any
sourcefn from(x: ByteString) -> Self
fn from(x: ByteString) -> Self
Performs the conversion.
sourceimpl Hash for ByteString
impl Hash for ByteString
sourceimpl PartialEq<ByteString> for ByteString
impl PartialEq<ByteString> for ByteString
sourceimpl<'a> TryFrom<&'a Any> for &'a ByteString
impl<'a> TryFrom<&'a Any> for &'a ByteString
sourceimpl TryFrom<Any> for ByteString
impl TryFrom<Any> for ByteString
impl Eq for ByteString
Auto Trait Implementations
impl RefUnwindSafe for ByteString
impl Send for ByteString
impl Sync for ByteString
impl Unpin for ByteString
impl UnwindSafe for ByteString
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more