Struct Layers
pub struct Layers(/* private fields */);
Expand description
This struct holds a hashmap of all current displays, and their layer surfaces
Implementations§
§impl Layers
impl Layers
pub fn iter(&self) -> Iter<'_, String, LayerDisplay>
pub fn iter(&self) -> Iter<'_, String, LayerDisplay>
Creates the iterator of map by references of Layers
pub fn iter_mut(&mut self) -> IterMut<'_, String, LayerDisplay>
pub fn iter_mut(&mut self) -> IterMut<'_, String, LayerDisplay>
Creates the iterator of map by mutable references of Layers
.
pub fn into_keys(self) -> IntoKeys<String, LayerDisplay>
pub fn into_keys(self) -> IntoKeys<String, LayerDisplay>
Creates the consuming iterator by keys with type String
of Layers
.
pub fn into_values(self) -> IntoValues<String, LayerDisplay>
pub fn into_values(self) -> IntoValues<String, LayerDisplay>
Creates the consuming iterator by values of Layers
.
Trait Implementations§
§impl<'a> IntoIterator for &'a Layers
impl<'a> IntoIterator for &'a Layers
§type Item = (&'a String, &'a LayerDisplay)
type Item = (&'a String, &'a LayerDisplay)
The type of the elements being iterated over.
§type IntoIter = Iter<'a, String, LayerDisplay>
type IntoIter = Iter<'a, String, LayerDisplay>
Which kind of iterator are we turning this into?
§impl<'a> IntoIterator for &'a mut Layers
impl<'a> IntoIterator for &'a mut Layers
§type Item = (&'a String, &'a mut LayerDisplay)
type Item = (&'a String, &'a mut LayerDisplay)
The type of the elements being iterated over.
§type IntoIter = IterMut<'a, String, LayerDisplay>
type IntoIter = IterMut<'a, String, LayerDisplay>
Which kind of iterator are we turning this into?
§impl IntoIterator for Layers
impl IntoIterator for Layers
§type Item = (String, LayerDisplay)
type Item = (String, LayerDisplay)
The type of the elements being iterated over.
§type IntoIter = IntoIter<String, LayerDisplay>
type IntoIter = IntoIter<String, LayerDisplay>
Which kind of iterator are we turning this into?
Auto Trait Implementations§
impl Freeze for Layers
impl RefUnwindSafe for Layers
impl Send for Layers
impl Sync for Layers
impl Unpin for Layers
impl UnwindSafe for Layers
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> 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