Skip to main content

IIListMethods

Trait IIListMethods 

Source
pub trait IIListMethods: IIList {
    // Provided methods
    fn get_item(self, index: impl Into<i32>) -> Object { ... }
    fn set_item(self, index: impl Into<i32>, value: impl Into<Object>) { ... }
    fn add(self, value: impl Into<Object>) -> i32 { ... }
    fn contains(self, value: impl Into<Object>) -> bool { ... }
    fn clear(self) { ... }
    fn get_is_read_only(self) -> bool { ... }
    fn index_of(self, value: impl Into<Object>) -> i32 { ... }
    fn insert(self, index: impl Into<i32>, value: impl Into<Object>) { ... }
    fn remove(self, value: impl Into<Object>) { ... }
    fn remove_at(self, index: impl Into<i32>) { ... }
}

Provided Methods§

Source

fn get_item(self, index: impl Into<i32>) -> Object

get_Item(i32) overload

Source

fn set_item(self, index: impl Into<i32>, value: impl Into<Object>)

set_Item(i32, crate::system::object::Object) overload

Source

fn add(self, value: impl Into<Object>) -> i32

Add(crate::system::object::Object) overload

Source

fn contains(self, value: impl Into<Object>) -> bool

Contains(crate::system::object::Object) overload

Source

fn clear(self)

Clear() overload

Source

fn get_is_read_only(self) -> bool

get_IsReadOnly() overload

Source

fn index_of(self, value: impl Into<Object>) -> i32

IndexOf(crate::system::object::Object) overload

Source

fn insert(self, index: impl Into<i32>, value: impl Into<Object>)

Insert(i32, crate::system::object::Object) overload

Source

fn remove(self, value: impl Into<Object>)

Remove(crate::system::object::Object) overload

Source

fn remove_at(self, index: impl Into<i32>)

RemoveAt(i32) overload

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<__T: IIList> IIListMethods for __T

Available on crate feature system-collections-ilist only.