pub struct OnionTuple { /* private fields */ }Implementations§
Source§impl OnionTuple
impl OnionTuple
pub fn new(elements: Vec<OnionObject>) -> Self
pub fn new_static(elements: Vec<&OnionStaticObject>) -> OnionStaticObject
pub fn new_static_no_ref(elements: &Vec<OnionStaticObject>) -> OnionStaticObject
pub fn get_elements(&self) -> &Box<[OnionObject]>
pub fn upgrade(&self, collected: &mut Vec<GCArc<OnionObjectCell>>)
pub fn len(&self) -> Result<OnionStaticObject, RuntimeError>
pub fn at(&self, index: i64) -> Result<OnionStaticObject, RuntimeError>
pub fn with_index<F, R>(&self, index: i64, f: &F) -> Result<R, RuntimeError>
pub fn with_attribute<F, R>( &self, key: &OnionObject, f: &F, ) -> Result<R, RuntimeError>
pub fn binary_add( &self, other: &OnionObject, ) -> Result<OnionStaticObject, RuntimeError>
pub fn contains(&self, other: &OnionObject) -> Result<bool, RuntimeError>
Source§impl OnionTuple
impl OnionTuple
pub fn equals(&self, other: &OnionObject) -> Result<bool, RuntimeError>
Trait Implementations§
Source§impl Debug for OnionTuple
impl Debug for OnionTuple
Source§impl GCTraceable<OnionObjectCell> for OnionTuple
impl GCTraceable<OnionObjectCell> for OnionTuple
Auto Trait Implementations§
impl Freeze for OnionTuple
impl !RefUnwindSafe for OnionTuple
impl Send for OnionTuple
impl Sync for OnionTuple
impl Unpin for OnionTuple
impl !UnwindSafe for OnionTuple
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