pub struct MaaStringListBuffer { /* private fields */ }Expand description
A list buffer for storing multiple strings.
Provides indexed access and iteration over a collection of UTF-8 strings.
Implementations§
Source§impl MaaStringListBuffer
impl MaaStringListBuffer
Sourcepub unsafe fn from_raw(handle: *mut MaaStringListBuffer) -> Self
pub unsafe fn from_raw(handle: *mut MaaStringListBuffer) -> Self
Create from an existing handle.
§Safety
This function assumes the handle is valid. The returned buffer will NOT take ownership of the handle (it won’t be destroyed on drop). Use this when you are borrowing a handle from the C API.
Sourcepub fn from_handle(handle: *mut MaaStringListBuffer) -> Option<Self>
pub fn from_handle(handle: *mut MaaStringListBuffer) -> Option<Self>
Create from an existing handle safely (checks for null).
Returns None if handle is null.
Sourcepub fn as_ptr(&self) -> *mut MaaStringListBuffer
pub fn as_ptr(&self) -> *mut MaaStringListBuffer
Get the underlying raw handle.
Sourcepub fn raw(&self) -> *mut MaaStringListBuffer
pub fn raw(&self) -> *mut MaaStringListBuffer
Get the underlying raw handle (alias for as_ptr).
Source§impl MaaStringListBuffer
impl MaaStringListBuffer
Sourcepub fn set<S: AsRef<str>>(&self, data: &[S]) -> MaaResult<()>
pub fn set<S: AsRef<str>>(&self, data: &[S]) -> MaaResult<()>
Set the content of this list, replacing existing content.
Trait Implementations§
Source§impl Debug for MaaStringListBuffer
impl Debug for MaaStringListBuffer
Source§impl Default for MaaStringListBuffer
impl Default for MaaStringListBuffer
Source§impl Drop for MaaStringListBuffer
impl Drop for MaaStringListBuffer
impl Send for MaaStringListBuffer
Auto Trait Implementations§
impl Freeze for MaaStringListBuffer
impl RefUnwindSafe for MaaStringListBuffer
impl !Sync for MaaStringListBuffer
impl Unpin for MaaStringListBuffer
impl UnwindSafe for MaaStringListBuffer
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