#[repr(C)]pub struct SectionClaim {
pub name: *const i8,
pub required: bool,
}Expand description
Declares a TOML section claimed by an extension.
Extensions use this to declare custom config sections in shape.toml
(e.g., [native-dependencies]) without coupling domain-specific concepts
into core Shape.
Fields§
§name: *const i8Section name (null-terminated C string), e.g. “native-dependencies”
required: boolWhether absence of the section is an error (true) or silently ignored (false)
Trait Implementations§
impl Sync for SectionClaim
Auto Trait Implementations§
impl Freeze for SectionClaim
impl RefUnwindSafe for SectionClaim
impl !Send for SectionClaim
impl Unpin for SectionClaim
impl UnsafeUnpin for SectionClaim
impl UnwindSafe for SectionClaim
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