Struct simics_api_sys::bindings::strbuf_t
source · #[repr(C)]pub struct strbuf_t {
pub s: *mut c_char,
pub size: c_uint,
pub len: c_uint,
}
Expand description
Please do not access the members of this struct directly; use the accessor functions defined in this file. Invariants:
- .s[.len] == ‘\0’
- If .size == 0, then .len == 0 and .s points to a static null byte
- If .size > 0, then 0 <= .len < .size and .s points to an allocation of .size bytes.
Fields§
§s: *mut c_char
string, always 0-terminated
size: c_uint
size of allocated buffer
len: c_uint
current length
Trait Implementations§
source§impl Ord for strbuf_t
impl Ord for strbuf_t
source§impl PartialOrd for strbuf_t
impl PartialOrd for strbuf_t
impl Copy for strbuf_t
impl Eq for strbuf_t
impl StructuralPartialEq for strbuf_t
Auto Trait Implementations§
impl Freeze for strbuf_t
impl RefUnwindSafe for strbuf_t
impl !Send for strbuf_t
impl !Sync for strbuf_t
impl Unpin for strbuf_t
impl UnwindSafe for strbuf_t
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)