Type Alias starlark::values::enumeration::EnumValue
source · pub type EnumValue<'v> = EnumValueGen<Value<'v>>;
Expand description
Type of value.
Aliased Type§
struct EnumValue<'v> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<'v> AllocValue<'v> for EnumValue<'v>
impl<'v> AllocValue<'v> for EnumValue<'v>
source§impl<'v> StarlarkTypeRepr for &'v EnumValue<'v>
impl<'v> StarlarkTypeRepr for &'v EnumValue<'v>
source§fn starlark_type_repr() -> Ty
fn starlark_type_repr() -> Ty
The representation of a type that a user would use verbatim in starlark type annotations
source§impl<'v> UnpackValue<'v> for &'v EnumValue<'v>
impl<'v> UnpackValue<'v> for &'v EnumValue<'v>
source§fn unpack_value(x: Value<'v>) -> Option<&'v EnumValue<'v>>
fn unpack_value(x: Value<'v>) -> Option<&'v EnumValue<'v>>
Given a
Value
, try and unpack it into the given type, which may involve some element of conversion.source§fn unpack_value_err(value: Value<'v>) -> Result<Self>
fn unpack_value_err(value: Value<'v>) -> Result<Self>
Unpack a value, but return error instead of
None
if unpacking fails.source§fn unpack_param(value: Value<'v>) -> Result<Self>
fn unpack_param(value: Value<'v>) -> Result<Self>
Unpack value, but instead of
None
return error about incorrect argument type.