pub struct Array<'a>(/* private fields */);Implementations§
Source§impl<'a> Array<'a>
impl<'a> Array<'a>
pub fn get_length(self) -> u32
pub fn get(self, index: u32) -> Object<'a>
pub fn set<O: AsObject<'a>>(self, index: u32, value: O)
pub fn new( ctx: &CurrentContext<'a>, num_elements: Option<NonNegativeInt>, ) -> Self
pub fn from_slice(ctx: &CurrentContext<'a>, elements: &[Object<'a>]) -> Self
pub fn extend_from_slice(self, elements: &[Object<'_>]) -> u32
pub fn push<O: AsObject<'a>>(self, element: O) -> u32
pub fn iter(self) -> ArrayIter<'a> ⓘ
Trait Implementations§
Source§impl<'a> AsObject<'a> for Array<'a>
impl<'a> AsObject<'a> for Array<'a>
fn as_object(self) -> Object<'a>
fn as_ptr(self) -> FREObject
fn is_null(self) -> bool
fn get_property(self, name: UCStr) -> Result<Object<'a>, ExternalError<'a>>
fn set_property<O: AsObject<'a>>( self, name: UCStr, value: O, ) -> Result<(), ExternalError<'a>>
fn call_method( self, name: UCStr, args: Option<&[Object<'_>]>, ) -> Result<Object<'a>, ExternalError<'a>>
Source§impl<'a> IntoIterator for Array<'a>
impl<'a> IntoIterator for Array<'a>
impl<'a> Copy for Array<'a>
impl<'a> Eq for Array<'a>
impl<'a> StructuralPartialEq for Array<'a>
Auto Trait Implementations§
impl<'a> Freeze for Array<'a>
impl<'a> RefUnwindSafe for Array<'a>
impl<'a> !Send for Array<'a>
impl<'a> !Sync for Array<'a>
impl<'a> Unpin for Array<'a>
impl<'a> UnsafeUnpin for Array<'a>
impl<'a> UnwindSafe for Array<'a>
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