pub struct ArrayHandle { /* private fields */ }Implementations§
Source§impl ArrayHandle
impl ArrayHandle
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn borrow(&self) -> Ref<'_, [Value]>
pub fn borrow_mut(&self) -> RefMut<'_, Vec<Value>>
pub fn push(&self, value: Value)
pub fn extend<I>(&self, iter: I)where
I: IntoIterator<Item = Value>,
pub fn get(&self, index: usize) -> Option<ValueRef<'_>>
pub fn with_ref<R>(&self, f: impl FnOnce(&[Value]) -> R) -> R
pub fn with_mut<R>(&self, f: impl FnOnce(&mut Vec<Value>) -> R) -> R
Trait Implementations§
Source§impl Clone for ArrayHandle
impl Clone for ArrayHandle
Source§fn clone(&self) -> ArrayHandle
fn clone(&self) -> ArrayHandle
Returns a duplicate 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 FromLustValue for ArrayHandle
impl FromLustValue for ArrayHandle
fn from_value(value: Value) -> Result<Self>
fn matches_lust_type(ty: &Type) -> bool
fn type_description() -> &'static str
Source§impl<'a> FromStructField<'a> for ArrayHandle
impl<'a> FromStructField<'a> for ArrayHandle
Source§impl IntoLustValue for ArrayHandle
impl IntoLustValue for ArrayHandle
fn into_value(self) -> Value
fn matches_lust_type(ty: &Type) -> bool
fn type_description() -> &'static str
Source§impl IntoTypedValue for ArrayHandle
impl IntoTypedValue for ArrayHandle
fn into_typed_value(self) -> TypedValue
Auto Trait Implementations§
impl Freeze for ArrayHandle
impl !RefUnwindSafe for ArrayHandle
impl !Send for ArrayHandle
impl !Sync for ArrayHandle
impl Unpin for ArrayHandle
impl UnsafeUnpin for ArrayHandle
impl !UnwindSafe for ArrayHandle
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