pub struct AwsByteBuf { /* private fields */ }
Implementations
sourceimpl AwsByteBuf
impl AwsByteBuf
sourcepub fn new(
allocator: &AwsAllocator,
capacity: usize
) -> Result<AwsByteBuf, Box<dyn Error + Send + Sync + 'static>>
pub fn new(
allocator: &AwsAllocator,
capacity: usize
) -> Result<AwsByteBuf, Box<dyn Error + Send + Sync + 'static>>
Create a new byte buffer with the given capacity.
sourcepub fn from_str(
allocator: &AwsAllocator,
s: &str
) -> Result<AwsByteBuf, Box<dyn Error + Send + Sync + 'static>>
pub fn from_str(
allocator: &AwsAllocator,
s: &str
) -> Result<AwsByteBuf, Box<dyn Error + Send + Sync + 'static>>
Create a new byte buffer from the given string.
pub fn secure_zero(&mut self)
pub fn is_valid(&self) -> bool
pub fn to_string_lossy(&self) -> String
Trait Implementations
sourceimpl Clone for AwsByteBuf
impl Clone for AwsByteBuf
Auto Trait Implementations
impl RefUnwindSafe for AwsByteBuf
impl Send for AwsByteBuf
impl Sync for AwsByteBuf
impl Unpin for AwsByteBuf
impl UnwindSafe for AwsByteBuf
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more