pub struct BindingsBuilder { /* private fields */ }Expand description
Stores an under-construction set of bindings @ingroup value_create
Each builder can only be used once. After calling nix_make_attrs(), the builder becomes invalid and must not be used again. Call nix_bindings_builder_free() to release it.
Typical usage pattern:
- Create with nix_make_bindings_builder()
- Insert attributes with nix_bindings_builder_insert()
- Create final attribute set with nix_make_attrs()
- Free builder with nix_bindings_builder_free()
@struct BindingsBuilder
§See also
[
nix_make_bindings_builder,] nix_bindings_builder_free, nix_make_attrsnix_bindings_builder_insert
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BindingsBuilder
impl RefUnwindSafe for BindingsBuilder
impl Send for BindingsBuilder
impl Sync for BindingsBuilder
impl Unpin for BindingsBuilder
impl UnsafeUnpin for BindingsBuilder
impl UnwindSafe for BindingsBuilder
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