Struct saphir::RequestAddonCollection
source · pub struct RequestAddonCollection { /* private fields */ }
Expand description
A convenience class to contains RequestParams
Implementations
sourceimpl RequestAddonCollection
impl RequestAddonCollection
sourcepub fn get(&self, name: &str) -> Option<&RequestAddon>
pub fn get(&self, name: &str) -> Option<&RequestAddon>
Retrieve a Ref of a param by its name
sourcepub fn get_mut(&mut self, name: &str) -> Option<&mut RequestAddon>
pub fn get_mut(&mut self, name: &str) -> Option<&mut RequestAddon>
Retrieve a RefMut of a param by its name
sourcepub fn add(&mut self, p: RequestAddon)
pub fn add(&mut self, p: RequestAddon)
Add a RequestAddon
to the collection
Trait Implementations
sourceimpl Debug for RequestAddonCollection
impl Debug for RequestAddonCollection
sourceimpl Index<usize> for RequestAddonCollection
impl Index<usize> for RequestAddonCollection
type Output = RequestAddon
type Output = RequestAddon
The returned type after indexing.
sourcefn index(&self, index: usize) -> &RequestAddon
fn index(&self, index: usize) -> &RequestAddon
Performs the indexing (
container[index]
) operation. Read moresourceimpl IndexMut<usize> for RequestAddonCollection
impl IndexMut<usize> for RequestAddonCollection
sourcefn index_mut(&mut self, index: usize) -> &mut RequestAddon
fn index_mut(&mut self, index: usize) -> &mut RequestAddon
Performs the mutable indexing (
container[index]
) operation. Read moresourceimpl<'a> IntoIterator for &'a RequestAddonCollection
impl<'a> IntoIterator for &'a RequestAddonCollection
type Item = &'a RequestAddon
type Item = &'a RequestAddon
The type of the elements being iterated over.
type IntoIter = Iter<'a, RequestAddon>
type IntoIter = Iter<'a, RequestAddon>
Which kind of iterator are we turning this into?
sourcefn into_iter(self) -> <Self as IntoIterator>::IntoIter
fn into_iter(self) -> <Self as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
sourceimpl<'a> IntoIterator for &'a mut RequestAddonCollection
impl<'a> IntoIterator for &'a mut RequestAddonCollection
type Item = &'a mut RequestAddon
type Item = &'a mut RequestAddon
The type of the elements being iterated over.
type IntoIter = IterMut<'a, RequestAddon>
type IntoIter = IterMut<'a, RequestAddon>
Which kind of iterator are we turning this into?
sourcefn into_iter(self) -> <Self as IntoIterator>::IntoIter
fn into_iter(self) -> <Self as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
sourceimpl IntoIterator for RequestAddonCollection
impl IntoIterator for RequestAddonCollection
type Item = RequestAddon
type Item = RequestAddon
The type of the elements being iterated over.
type IntoIter = IntoIter<RequestAddon, Global>
type IntoIter = IntoIter<RequestAddon, Global>
Which kind of iterator are we turning this into?
sourcefn into_iter(self) -> <Self as IntoIterator>::IntoIter
fn into_iter(self) -> <Self as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
Auto Trait Implementations
impl !RefUnwindSafe for RequestAddonCollection
impl Send for RequestAddonCollection
impl !Sync for RequestAddonCollection
impl Unpin for RequestAddonCollection
impl !UnwindSafe for RequestAddonCollection
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more