#[repr(C)]pub struct StringBuffer {
pub mRefCount: u32,
pub mStorageSize: u32,
}
Expand description
This structure precedes the string buffers “we” allocate. It may be the case that nsTAString::mData does not point to one of these special buffers. The mDataFlags member variable distinguishes the buffer type.
When this header is in use, it enables reference counting, and capacity tracking. NOTE: A string buffer can be modified only if its reference count is 1.
Fields§
§mRefCount: u32
§mStorageSize: u32
Trait Implementations§
Source§impl Debug for StringBuffer
impl Debug for StringBuffer
Source§impl PartialEq for StringBuffer
impl PartialEq for StringBuffer
impl StructuralPartialEq for StringBuffer
Auto Trait Implementations§
impl Freeze for StringBuffer
impl RefUnwindSafe for StringBuffer
impl Send for StringBuffer
impl Sync for StringBuffer
impl Unpin for StringBuffer
impl UnwindSafe for StringBuffer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Filterable for T
impl<T> Filterable for T
Source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more