pub struct StandardLibrary { /* private fields */ }Expand description
A representation of the standard library.
Implementations§
Source§impl StandardLibrary
impl StandardLibrary
Sourcepub fn function(&self, name: &str) -> Option<&Function>
pub fn function(&self, name: &str) -> Option<&Function>
Gets a standard library function by name.
Sourcepub fn functions(
&self,
) -> impl ExactSizeIterator<Item = (&'static str, &Function)>
pub fn functions( &self, ) -> impl ExactSizeIterator<Item = (&'static str, &Function)>
Gets an iterator over all the functions in the standard library.
Sourcepub fn array_int_type(&self) -> &ArrayType
pub fn array_int_type(&self) -> &ArrayType
Gets the type for Array[Int].
Sourcepub fn array_string_type(&self) -> &ArrayType
pub fn array_string_type(&self) -> &ArrayType
Gets the type for Array[String].
Sourcepub fn array_file_type(&self) -> &ArrayType
pub fn array_file_type(&self) -> &ArrayType
Gets the type for Array[File].
Sourcepub fn array_object_type(&self) -> &ArrayType
pub fn array_object_type(&self) -> &ArrayType
Gets the type for Array[Object].
Sourcepub fn array_string_non_empty_type(&self) -> &ArrayType
pub fn array_string_non_empty_type(&self) -> &ArrayType
Gets the type for Array[String]+.
Sourcepub fn array_array_string_type(&self) -> &ArrayType
pub fn array_array_string_type(&self) -> &ArrayType
Gets the type for Array[Array[String]].
Sourcepub fn map_string_string_type(&self) -> &MapType
pub fn map_string_string_type(&self) -> &MapType
Gets the type for Map[String, String].
Sourcepub fn map_string_int_type(&self) -> &MapType
pub fn map_string_int_type(&self) -> &MapType
Gets the type for Map[String, Int].
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StandardLibrary
impl !RefUnwindSafe for StandardLibrary
impl Send for StandardLibrary
impl Sync for StandardLibrary
impl Unpin for StandardLibrary
impl !UnwindSafe for StandardLibrary
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more