pub struct ArrayObj {
pub meta: GosMetadata,
pub vec: Rc<RefCell<GosVec>>,
}
Fields§
§meta: GosMetadata
§vec: Rc<RefCell<GosVec>>
Implementations§
Source§impl ArrayObj
impl ArrayObj
pub fn with_size( size: usize, val: &GosValue, meta: GosMetadata, gcos: &GcoVec, ) -> ArrayObj
pub fn with_data(val: Vec<GosValue>, meta: GosMetadata) -> ArrayObj
pub fn deep_clone(&self, gcos: &GcoVec) -> ArrayObj
pub fn len(&self) -> usize
pub fn borrow_data_mut(&self) -> RefMut<'_, GosVec>
pub fn borrow_data(&self) -> Ref<'_, GosVec>
pub fn get(&self, i: usize) -> Option<GosValue>
pub fn set_from(&self, other: &ArrayObj)
Trait Implementations§
impl Eq for ArrayObj
Auto Trait Implementations§
impl Freeze for ArrayObj
impl !RefUnwindSafe for ArrayObj
impl !Send for ArrayObj
impl !Sync for ArrayObj
impl Unpin for ArrayObj
impl !UnwindSafe for ArrayObj
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