Struct rsvg::parsers::CommaSeparatedList
source · pub struct CommaSeparatedList<T: Parse, const REQUIRED: usize, const MAX: usize>(pub Vec<T>);
Expand description
List separated by optional commas, with bounds for the required and maximum number of items.
Tuple Fields§
§0: Vec<T>
Trait Implementations§
source§impl<T: Clone + Parse, const REQUIRED: usize, const MAX: usize> Clone for CommaSeparatedList<T, REQUIRED, MAX>
impl<T: Clone + Parse, const REQUIRED: usize, const MAX: usize> Clone for CommaSeparatedList<T, REQUIRED, MAX>
source§fn clone(&self) -> CommaSeparatedList<T, REQUIRED, MAX>
fn clone(&self) -> CommaSeparatedList<T, REQUIRED, MAX>
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<T: Debug + Parse, const REQUIRED: usize, const MAX: usize> Debug for CommaSeparatedList<T, REQUIRED, MAX>
impl<T: Debug + Parse, const REQUIRED: usize, const MAX: usize> Debug for CommaSeparatedList<T, REQUIRED, MAX>
source§impl<T: Parse, const REQUIRED: usize, const MAX: usize> Parse for CommaSeparatedList<T, REQUIRED, MAX>
impl<T: Parse, const REQUIRED: usize, const MAX: usize> Parse for CommaSeparatedList<T, REQUIRED, MAX>
source§impl<T: PartialEq + Parse, const REQUIRED: usize, const MAX: usize> PartialEq for CommaSeparatedList<T, REQUIRED, MAX>
impl<T: PartialEq + Parse, const REQUIRED: usize, const MAX: usize> PartialEq for CommaSeparatedList<T, REQUIRED, MAX>
source§fn eq(&self, other: &CommaSeparatedList<T, REQUIRED, MAX>) -> bool
fn eq(&self, other: &CommaSeparatedList<T, REQUIRED, MAX>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: Parse, const REQUIRED: usize, const MAX: usize> StructuralPartialEq for CommaSeparatedList<T, REQUIRED, MAX>
Auto Trait Implementations§
impl<T, const REQUIRED: usize, const MAX: usize> Freeze for CommaSeparatedList<T, REQUIRED, MAX>
impl<T, const REQUIRED: usize, const MAX: usize> RefUnwindSafe for CommaSeparatedList<T, REQUIRED, MAX>where
T: RefUnwindSafe,
impl<T, const REQUIRED: usize, const MAX: usize> Send for CommaSeparatedList<T, REQUIRED, MAX>where
T: Send,
impl<T, const REQUIRED: usize, const MAX: usize> Sync for CommaSeparatedList<T, REQUIRED, MAX>where
T: Sync,
impl<T, const REQUIRED: usize, const MAX: usize> Unpin for CommaSeparatedList<T, REQUIRED, MAX>where
T: Unpin,
impl<T, const REQUIRED: usize, const MAX: usize> UnwindSafe for CommaSeparatedList<T, REQUIRED, MAX>where
T: UnwindSafe,
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.