pub struct ListBuilder { /* private fields */ }Expand description
Stores an under-construction list @ingroup value_create
Each builder can only be used once. After calling nix_make_list(), the builder becomes invalid and must not be used again. Call nix_list_builder_free() to release it.
Typical usage pattern:
- Create with nix_make_list_builder()
- Insert elements with nix_list_builder_insert()
- Create final list with nix_make_list()
- Free builder with nix_list_builder_free()
@struct ListBuilder
§See also
[
nix_make_list_builder,] nix_list_builder_free, nix_make_listnix_list_builder_insert
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ListBuilder
impl RefUnwindSafe for ListBuilder
impl Send for ListBuilder
impl Sync for ListBuilder
impl Unpin for ListBuilder
impl UnsafeUnpin for ListBuilder
impl UnwindSafe for ListBuilder
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