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

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>

Creates the iterator of map by mutable references of Layers.

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>

Creates the consuming iterator by values of Layers.

Trait Implementations§

§

impl Debug for Layers

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl HyprData for Layers

§

fn get() -> Result<Layers, HyprError>

This method gets the data
§

async fn get_async() -> Result<Layers, HyprError>

This method gets the data (async)
§

impl<'a> IntoIterator for &'a Layers

§

type Item = (&'a String, &'a LayerDisplay)

The type of the elements being iterated over.
§

type IntoIter = Iter<'a, String, LayerDisplay>

Which kind of iterator are we turning this into?
§

fn into_iter(self) -> <&'a Layers as IntoIterator>::IntoIter

Creates an iterator from a value. Read more
§

impl<'a> IntoIterator for &'a mut Layers

§

type Item = (&'a String, &'a mut LayerDisplay)

The type of the elements being iterated over.
§

type IntoIter = IterMut<'a, String, LayerDisplay>

Which kind of iterator are we turning this into?
§

fn into_iter(self) -> <&'a mut Layers as IntoIterator>::IntoIter

Creates an iterator from a value. Read more
§

impl IntoIterator for Layers

§

type Item = (String, LayerDisplay)

The type of the elements being iterated over.
§

type IntoIter = IntoIter<String, LayerDisplay>

Which kind of iterator are we turning this into?
§

fn into_iter(self) -> <Layers as IntoIterator>::IntoIter

Creates an iterator from a value. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.