pub struct BuildContext { /* private fields */ }Expand description
One named additional context in a structured source build declaration.
Implementations§
Source§impl BuildContext
impl BuildContext
Sourcepub const fn new(name: ProtectedString, value: ProtectedString) -> Self
pub const fn new(name: ProtectedString, value: ProtectedString) -> Self
Creates a named additional build context without applying native rules.
Sourcepub const fn name(&self) -> &ProtectedString
pub const fn name(&self) -> &ProtectedString
Returns the declared context name.
Sourcepub const fn value(&self) -> &ProtectedString
pub const fn value(&self) -> &ProtectedString
Returns the raw-preserving context value.
Trait Implementations§
Source§impl Clone for BuildContext
impl Clone for BuildContext
Source§fn clone(&self) -> BuildContext
fn clone(&self) -> BuildContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BuildContext
impl Debug for BuildContext
impl Eq for BuildContext
Source§impl PartialEq for BuildContext
impl PartialEq for BuildContext
impl StructuralPartialEq for BuildContext
Auto Trait Implementations§
impl Freeze for BuildContext
impl RefUnwindSafe for BuildContext
impl Send for BuildContext
impl Sync for BuildContext
impl Unpin for BuildContext
impl UnsafeUnpin for BuildContext
impl UnwindSafe for BuildContext
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