pub struct Dialect {
pub enable_def: bool,
pub enable_lambda: bool,
pub enable_load: bool,
pub enable_keyword_only_arguments: bool,
pub enable_types: bool,
pub enable_tabs: bool,
pub enable_load_reexport: bool,
pub enable_top_level_stmt: bool,
}
Expand description
Starlark language features to enable, e.g. Standard
to follow the Starlark standard.
Fields
enable_def: bool
enable_lambda: bool
enable_load: bool
enable_keyword_only_arguments: bool
enable_types: bool
enable_tabs: bool
Are tabs permitted for indentation. If permitted, tabs are equivalent to 8 spaces.
Enabled in both Standard
and Extended
.
enable_load_reexport: bool
Do load()
statements reexport their definition.
Enabled in both Standard
and Extended
,
but may change in future definitions of the standard.
enable_top_level_stmt: bool
Are for
, if
and other statements allowed at the top level.
Only enabled in Extended
.
Implementations
Trait Implementations
impl Eq for Dialect
impl StructuralEq for Dialect
impl StructuralPartialEq for Dialect
Auto Trait Implementations
impl RefUnwindSafe for Dialect
impl Send for Dialect
impl Sync for Dialect
impl Unpin for Dialect
impl UnwindSafe for Dialect
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<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
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