pub struct AttributeTupleArguments { /* private fields */ }Expand description
Tuple arguments for an attribute element.
Implementations§
Source§impl AttributeTupleArguments
impl AttributeTupleArguments
pub fn with_value(self, value: impl Into<LiteralExpression>) -> Self
pub fn push(&mut self, argument: impl Into<LiteralExpression>)
Sourcepub fn insert(&mut self, index: usize, argument: impl Into<LiteralExpression>)
pub fn insert(&mut self, index: usize, argument: impl Into<LiteralExpression>)
Inserts an argument at the specified index.
Sourcepub fn iter_values(&self) -> impl Iterator<Item = &LiteralExpression>
pub fn iter_values(&self) -> impl Iterator<Item = &LiteralExpression>
Returns an iterator over the argument values.
Sourcepub fn iter_mut_values(
&mut self,
) -> impl Iterator<Item = &mut LiteralExpression>
pub fn iter_mut_values( &mut self, ) -> impl Iterator<Item = &mut LiteralExpression>
Returns a mutable iterator over the argument values.
Sourcepub fn get_tokens(&self) -> Option<&TupleArgumentsTokens>
pub fn get_tokens(&self) -> Option<&TupleArgumentsTokens>
Returns the tokens for this tuple arguments, if any.
Sourcepub fn set_tokens(&mut self, tokens: TupleArgumentsTokens)
pub fn set_tokens(&mut self, tokens: TupleArgumentsTokens)
Sets the tokens for this tuple arguments.
Sourcepub fn with_tokens(self, tokens: TupleArgumentsTokens) -> Self
pub fn with_tokens(self, tokens: TupleArgumentsTokens) -> Self
Attaches tokens to this tuple arguments.
Sourcepub fn clear_comments(&mut self)
pub fn clear_comments(&mut self)
Clears all comments from the tokens in this node.
Sourcepub fn clear_whitespaces(&mut self)
pub fn clear_whitespaces(&mut self)
Clears all whitespaces information from the tokens in this node.
Trait Implementations§
Source§impl Clone for AttributeTupleArguments
impl Clone for AttributeTupleArguments
Source§fn clone(&self) -> AttributeTupleArguments
fn clone(&self) -> AttributeTupleArguments
Returns a duplicate 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 Debug for AttributeTupleArguments
impl Debug for AttributeTupleArguments
Source§impl Default for AttributeTupleArguments
impl Default for AttributeTupleArguments
Source§fn default() -> AttributeTupleArguments
fn default() -> AttributeTupleArguments
Returns the “default value” for a type. Read more
Source§impl From<AttributeTupleArguments> for AttributeArguments
impl From<AttributeTupleArguments> for AttributeArguments
Source§fn from(v: AttributeTupleArguments) -> Self
fn from(v: AttributeTupleArguments) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AttributeTupleArguments
impl PartialEq for AttributeTupleArguments
impl Eq for AttributeTupleArguments
impl StructuralPartialEq for AttributeTupleArguments
Auto Trait Implementations§
impl Freeze for AttributeTupleArguments
impl RefUnwindSafe for AttributeTupleArguments
impl Send for AttributeTupleArguments
impl Sync for AttributeTupleArguments
impl Unpin for AttributeTupleArguments
impl UnsafeUnpin for AttributeTupleArguments
impl UnwindSafe for AttributeTupleArguments
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more