#[repr(C)]pub struct ecs_strbuf_t {
pub buf: *mut c_char,
pub max: i32,
pub size: i32,
pub elementCount: i32,
pub firstElement: ecs_strbuf_element_embedded,
pub current: *mut ecs_strbuf_element,
pub list_stack: [ecs_strbuf_list_elem; 32],
pub list_sp: i32,
pub content: *mut c_char,
pub length: i32,
}Fields§
§buf: *mut c_charWhen set by an application, append will write to this buffer
max: i32The maximum number of characters that may be printed
size: i32Size of elements minus current element
elementCount: i32The number of elements in use
firstElement: ecs_strbuf_element_embeddedAlways allocate at least one element
current: *mut ecs_strbuf_elementThe current element being appended to
list_stack: [ecs_strbuf_list_elem; 32]Stack that keeps track of number of list elements, used for conditionally inserting a separator
list_sp: i32§content: *mut c_charThis is set to the output string after calling ecs_strbuf_get
length: i32This is set to the output string length after calling ecs_strbuf_get
Trait Implementations§
Source§impl Clone for ecs_strbuf_t
impl Clone for ecs_strbuf_t
Source§fn clone(&self) -> ecs_strbuf_t
fn clone(&self) -> ecs_strbuf_t
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ecs_strbuf_t
impl Debug for ecs_strbuf_t
impl Copy for ecs_strbuf_t
Auto Trait Implementations§
impl Freeze for ecs_strbuf_t
impl RefUnwindSafe for ecs_strbuf_t
impl !Send for ecs_strbuf_t
impl !Sync for ecs_strbuf_t
impl Unpin for ecs_strbuf_t
impl UnwindSafe for ecs_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