Enum starlark::syntax::DialectTypes
source · pub enum DialectTypes {
Disable,
ParseOnly,
Enable,
}
Expand description
How to handle type annotations in Starlark.
If you are enabling types, you will often want to use
LibraryExtension::Typing
when constructing a Globals
environment.
Variants§
Disable
Prohibit types at parse time.
ParseOnly
Allow types at parse time, but ignore types at runtime.
Enable
Check types at runtime.
Trait Implementations§
source§impl Clone for DialectTypes
impl Clone for DialectTypes
source§fn clone(&self) -> DialectTypes
fn clone(&self) -> DialectTypes
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DialectTypes
impl Debug for DialectTypes
source§impl Hash for DialectTypes
impl Hash for DialectTypes
source§impl PartialEq for DialectTypes
impl PartialEq for DialectTypes
source§fn eq(&self, other: &DialectTypes) -> bool
fn eq(&self, other: &DialectTypes) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for DialectTypes
impl Eq for DialectTypes
impl StructuralPartialEq for DialectTypes
Auto Trait Implementations§
impl RefUnwindSafe for DialectTypes
impl Send for DialectTypes
impl Sync for DialectTypes
impl Unpin for DialectTypes
impl UnwindSafe for DialectTypes
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.