pub enum KwArg {
Positional(StarlarkValue),
Named {
name: String,
value: StarlarkValue,
},
}Expand description
Argument to a Starlark call. Either positional or keyword. The
positional_named variant attaches a name for renderer-side
pretty-printing (name = ... form), used for the canonical
kwarg-style every BUILD file actually authors.
Variants§
Implementations§
Source§impl KwArg
impl KwArg
pub fn str(name: &str, value: impl Into<String>) -> Self
pub fn positional(value: StarlarkValue) -> Self
pub fn positional_named(name: &str, value: StarlarkValue) -> Self
Trait Implementations§
impl StructuralPartialEq for KwArg
Auto Trait Implementations§
impl Freeze for KwArg
impl RefUnwindSafe for KwArg
impl Send for KwArg
impl Sync for KwArg
impl Unpin for KwArg
impl UnsafeUnpin for KwArg
impl UnwindSafe for KwArg
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