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) -> &Vec<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>
Source§impl OnionTuple
impl OnionTuple
pub fn reconstruct_container(&self) -> Result<OnionObject, RuntimeError>
Trait Implementations§
Source§impl Clone for OnionTuple
impl Clone for OnionTuple
Source§fn clone(&self) -> OnionTuple
fn clone(&self) -> OnionTuple
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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