pub struct StdLib;Expand description
Standard library function implementations
Implementations§
Source§impl StdLib
impl StdLib
Sourcepub fn call_function(
name: &str,
args: Vec<JsonnetValue>,
) -> Result<JsonnetValue>
pub fn call_function( name: &str, args: Vec<JsonnetValue>, ) -> Result<JsonnetValue>
Call a standard library function
Sourcepub fn length(args: Vec<JsonnetValue>) -> Result<JsonnetValue>
pub fn length(args: Vec<JsonnetValue>) -> Result<JsonnetValue>
std.length(x) - returns length of array, string, or object
Auto Trait Implementations§
impl Freeze for StdLib
impl RefUnwindSafe for StdLib
impl Send for StdLib
impl Sync for StdLib
impl Unpin for StdLib
impl UnwindSafe for StdLib
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