Struct LayerDisplay
pub struct LayerDisplay {
pub levels: HashMap<String, Vec<LayerClient>, RandomState>,
}
Expand description
This struct holds all the layer surfaces for a display
Fields§
§levels: HashMap<String, Vec<LayerClient>, RandomState>
The different levels of layers
Implementations§
§impl LayerDisplay
impl LayerDisplay
pub fn iter(&self) -> Iter<'_, String, Vec<LayerClient>>
pub fn iter(&self) -> Iter<'_, String, Vec<LayerClient>>
Creates the iterator of map by references of LayerDisplay
pub fn iter_mut(&mut self) -> IterMut<'_, String, Vec<LayerClient>>
pub fn iter_mut(&mut self) -> IterMut<'_, String, Vec<LayerClient>>
Creates the iterator of map by mutable references of LayerDisplay
.
pub fn into_keys(self) -> IntoKeys<String, Vec<LayerClient>>
pub fn into_keys(self) -> IntoKeys<String, Vec<LayerClient>>
Creates the consuming iterator by keys with type String
of LayerDisplay
.
pub fn into_values(self) -> IntoValues<String, Vec<LayerClient>>
pub fn into_values(self) -> IntoValues<String, Vec<LayerClient>>
Creates the consuming iterator by values of LayerDisplay
.
Trait Implementations§
§impl Clone for LayerDisplay
impl Clone for LayerDisplay
§fn clone(&self) -> LayerDisplay
fn clone(&self) -> LayerDisplay
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 more§impl Debug for LayerDisplay
impl Debug for LayerDisplay
§impl<'de> Deserialize<'de> for LayerDisplay
impl<'de> Deserialize<'de> for LayerDisplay
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LayerDisplay, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LayerDisplay, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl<'a> IntoIterator for &'a LayerDisplay
impl<'a> IntoIterator for &'a LayerDisplay
§type Item = (&'a String, &'a Vec<LayerClient>)
type Item = (&'a String, &'a Vec<LayerClient>)
The type of the elements being iterated over.
§fn into_iter(self) -> <&'a LayerDisplay as IntoIterator>::IntoIter
fn into_iter(self) -> <&'a LayerDisplay as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
§impl<'a> IntoIterator for &'a mut LayerDisplay
impl<'a> IntoIterator for &'a mut LayerDisplay
§type Item = (&'a String, &'a mut Vec<LayerClient>)
type Item = (&'a String, &'a mut Vec<LayerClient>)
The type of the elements being iterated over.
§type IntoIter = IterMut<'a, String, Vec<LayerClient>>
type IntoIter = IterMut<'a, String, Vec<LayerClient>>
Which kind of iterator are we turning this into?
§fn into_iter(self) -> <&'a mut LayerDisplay as IntoIterator>::IntoIter
fn into_iter(self) -> <&'a mut LayerDisplay as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
§impl IntoIterator for LayerDisplay
impl IntoIterator for LayerDisplay
§type Item = (String, Vec<LayerClient>)
type Item = (String, Vec<LayerClient>)
The type of the elements being iterated over.
§fn into_iter(self) -> <LayerDisplay as IntoIterator>::IntoIter
fn into_iter(self) -> <LayerDisplay as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
§impl PartialEq for LayerDisplay
impl PartialEq for LayerDisplay
§impl Serialize for LayerDisplay
impl Serialize for LayerDisplay
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for LayerDisplay
impl StructuralPartialEq for LayerDisplay
Auto Trait Implementations§
impl Freeze for LayerDisplay
impl RefUnwindSafe for LayerDisplay
impl Send for LayerDisplay
impl Sync for LayerDisplay
impl Unpin for LayerDisplay
impl UnwindSafe for LayerDisplay
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<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