[−][src]Struct ion_c_sys::_ion_collection
The collections used by the parser are linked lists which are managed by the collection header. the memory used for the nodes is allocated on the parent, which is passed in when the user initializes the collection
the nodes in the list have a user sized data buffer, which is expected to a small struct (like ion string) or a scaler (like an int or pointer).
the push, pop, and append routines return the address of this data buffer - for push and append it is the buffer of the new node for pop it is the buffer of the released node - which is still allocated and is, therefore, good UNTIL ANOTHER push or append or copy is executed against the containing collection.
each collections holds a high water mark free list of nodes that were previously used but aren't currently being used
to use this as a: queue you'll want to "append" and "pop head" stack you'll want to "push" and "pop head"
Fields
_owner: *mut c_void
_node_size: i32
_count: i32
_head: *mut ION_COLLECTION_NODE
_tail: *mut ION_COLLECTION_NODE
_freelist: *mut ION_COLLECTION_NODE
Trait Implementations
impl Clone for _ion_collection
[src]
fn clone(&self) -> _ion_collection
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for _ion_collection
[src]
impl Debug for _ion_collection
[src]
impl Default for _ion_collection
[src]
Auto Trait Implementations
impl RefUnwindSafe for _ion_collection
impl !Send for _ion_collection
impl !Sync for _ion_collection
impl Unpin for _ion_collection
impl UnwindSafe for _ion_collection
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,