Struct starlark::environment::Globals
source · [−]pub struct Globals(_);
Expand description
The global values available during execution.
Implementations
sourceimpl Globals
impl Globals
sourcepub fn standard() -> Self
pub fn standard() -> Self
Create a Globals
following the
Starlark standard.
sourcepub fn extended() -> Self
pub fn extended() -> Self
Create a Globals
combining those functions in the Starlark standard plus
all those defined in LibraryExtension
.
sourcepub fn extended_by(extensions: &[LibraryExtension]) -> Self
pub fn extended_by(extensions: &[LibraryExtension]) -> Self
Create a Globals
combining those functions in the Starlark standard plus
all those given in the LibraryExtension
arguments.
sourcepub fn names(&self) -> Vec<String>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
pub fn names(&self) -> Vec<String>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Get all the names defined in this environment.
sourcepub fn documentation(&self) -> DocItem
pub fn documentation(&self) -> DocItem
Get the documentation for both the object itself, and its members. Returned as an Object
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Globals
impl Send for Globals
impl Sync for Globals
impl Unpin for Globals
impl !UnwindSafe for Globals
Blanket Implementations
sourceimpl<T> AsARef<T> for T where
T: ?Sized,
impl<T> AsARef<T> for T where
T: ?Sized,
sourcefn try_as_aref(this: &T) -> Result<ARef<'_, T>, BorrowError>
fn try_as_aref(this: &T) -> Result<ARef<'_, T>, BorrowError>
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more