Struct sway_ast::punctuated::Punctuated
source · pub struct Punctuated<T, P> {
pub value_separator_pairs: Vec<(T, P)>,
pub final_value_opt: Option<Box<T>>,
}Fields§
§value_separator_pairs: Vec<(T, P)>§final_value_opt: Option<Box<T>>Implementations§
Trait Implementations§
source§impl<T: Clone, P: Clone> Clone for Punctuated<T, P>
impl<T: Clone, P: Clone> Clone for Punctuated<T, P>
source§fn clone(&self) -> Punctuated<T, P>
fn clone(&self) -> Punctuated<T, P>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<'a, T, P> IntoIterator for &'a Punctuated<T, P>
impl<'a, T, P> IntoIterator for &'a Punctuated<T, P>
source§impl<T, P> IntoIterator for Punctuated<T, P>
impl<T, P> IntoIterator for Punctuated<T, P>
Auto Trait Implementations§
impl<T, P> RefUnwindSafe for Punctuated<T, P>where P: RefUnwindSafe, T: RefUnwindSafe,
impl<T, P> Send for Punctuated<T, P>where P: Send, T: Send,
impl<T, P> Sync for Punctuated<T, P>where P: Sync, T: Sync,
impl<T, P> Unpin for Punctuated<T, P>where P: Unpin, T: Unpin,
impl<T, P> UnwindSafe for Punctuated<T, P>where P: UnwindSafe, T: UnwindSafe,
Blanket Implementations§
§impl<'a, F, I> BatchInvert<F> for Iwhere
F: Field + ConstantTimeEq,
I: IntoIterator<Item = &'a mut F>,
impl<'a, F, I> BatchInvert<F> for Iwhere F: Field + ConstantTimeEq, I: IntoIterator<Item = &'a mut F>,
§fn batch_invert(self) -> F
fn batch_invert(self) -> F
Consumes this iterator and inverts each field element (when nonzero). Zero-valued
elements are left as zero. Read more
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