Struct starlark::values::ValueTypedComplex
source · pub struct ValueTypedComplex<'v, T>(/* private fields */)
where
T: ComplexValue<'v>,
T::Frozen: StarlarkValue<'static>;
Expand description
Value which is either a complex mutable value or a frozen value.
Implementations§
source§impl<'v, T> ValueTypedComplex<'v, T>
impl<'v, T> ValueTypedComplex<'v, T>
Trait Implementations§
source§impl<'v, T> AllocValue<'v> for ValueTypedComplex<'v, T>
impl<'v, T> AllocValue<'v> for ValueTypedComplex<'v, T>
source§impl<'v, T> Allocative for ValueTypedComplex<'v, T>
impl<'v, T> Allocative for ValueTypedComplex<'v, T>
source§impl<'v, T> Clone for ValueTypedComplex<'v, T>
impl<'v, T> Clone for ValueTypedComplex<'v, T>
source§impl<'v, T> Debug for ValueTypedComplex<'v, T>
impl<'v, T> Debug for ValueTypedComplex<'v, T>
source§impl<'v, T> Dupe for ValueTypedComplex<'v, T>
impl<'v, T> Dupe for ValueTypedComplex<'v, T>
source§impl<'v, T> From<ValueTyped<'v, T>> for ValueTypedComplex<'v, T>
impl<'v, T> From<ValueTyped<'v, T>> for ValueTypedComplex<'v, T>
source§fn from(t: ValueTyped<'v, T>) -> Self
fn from(t: ValueTyped<'v, T>) -> Self
Converts to this type from the input type.
source§impl<'v, T> StarlarkTypeRepr for ValueTypedComplex<'v, T>
impl<'v, T> StarlarkTypeRepr for ValueTypedComplex<'v, T>
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, T> Trace<'v> for ValueTypedComplex<'v, T>
impl<'v, T> Trace<'v> for ValueTypedComplex<'v, T>
source§impl<'v, T> UnpackValue<'v> for ValueTypedComplex<'v, T>
impl<'v, T> UnpackValue<'v> for ValueTypedComplex<'v, T>
source§fn unpack_value(value: Value<'v>) -> Option<Self>
fn unpack_value(value: Value<'v>) -> Option<Self>
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.impl<'v, T> Copy for ValueTypedComplex<'v, T>
Auto Trait Implementations§
impl<'v, T> !RefUnwindSafe for ValueTypedComplex<'v, T>
impl<'v, T> Send for ValueTypedComplex<'v, T>where
T: Send,
impl<'v, T> !Sync for ValueTypedComplex<'v, T>
impl<'v, T> Unpin for ValueTypedComplex<'v, T>where
T: Unpin,
impl<'v, T> UnwindSafe for ValueTypedComplex<'v, T>where
T: UnwindSafe,
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