pub struct Library { /* private fields */ }
Expand description
The library of all rules and functions available in geoscript.
Implementations§
Source§impl Library
impl Library
Sourcepub fn get_function(
&self,
name: &str,
) -> Result<&Function, Option<&'static str>>
pub fn get_function( &self, name: &str, ) -> Result<&Function, Option<&'static str>>
Get the function by its name. If the function doesn’t exist, return the most similar name if one exists. The search is case-insensitive and ignores underscores.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Library
impl !RefUnwindSafe for Library
impl !Send for Library
impl !Sync for Library
impl Unpin for Library
impl !UnwindSafe for Library
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> Convert for T
impl<T> Convert for T
Source§fn convert<U>(self, context: &CompileContext) -> Expr<U>where
U: ConvertFrom<T>,
fn convert<U>(self, context: &CompileContext) -> Expr<U>where
U: ConvertFrom<T>,
Convert
self
into a specific type. Read moreSource§fn can_convert<U>(&self) -> boolwhere
U: ConvertFrom<T>,
fn can_convert<U>(&self) -> boolwhere
U: ConvertFrom<T>,
Check if
self
can be converted into a specific type. Read more