Struct WorkspaceRules
pub struct WorkspaceRules(/* private fields */);
Expand description
This struct holds a vector of workspace rules per workspace
Implementations§
§impl WorkspaceRules
impl WorkspaceRules
pub fn iter(&self) -> Iter<'_, WorkspaceRuleset>
pub fn iter(&self) -> Iter<'_, WorkspaceRuleset>
Creates the iterator by references of WorkspaceRules
.
pub fn iter_mut(&mut self) -> IterMut<'_, WorkspaceRuleset>
pub fn iter_mut(&mut self) -> IterMut<'_, WorkspaceRuleset>
Creates the iterator by mutable references of WorkspaceRules`.
Trait Implementations§
§impl Clone for WorkspaceRules
impl Clone for WorkspaceRules
§fn clone(&self) -> WorkspaceRules
fn clone(&self) -> WorkspaceRules
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 WorkspaceRules
impl Debug for WorkspaceRules
§impl HyprData for WorkspaceRules
impl HyprData for WorkspaceRules
§fn get() -> Result<WorkspaceRules, HyprError>
fn get() -> Result<WorkspaceRules, HyprError>
This method gets the data
§async fn get_async() -> Result<WorkspaceRules, HyprError>
async fn get_async() -> Result<WorkspaceRules, HyprError>
This method gets the data (async)
§impl HyprDataVec<WorkspaceRuleset> for WorkspaceRules
impl HyprDataVec<WorkspaceRuleset> for WorkspaceRules
§fn to_vec(self) -> Vec<WorkspaceRuleset>
fn to_vec(self) -> Vec<WorkspaceRuleset>
This method returns a vector of data
§impl<'a> IntoIterator for &'a WorkspaceRules
impl<'a> IntoIterator for &'a WorkspaceRules
§type Item = &'a WorkspaceRuleset
type Item = &'a WorkspaceRuleset
The type of the elements being iterated over.
§type IntoIter = Iter<'a, WorkspaceRuleset>
type IntoIter = Iter<'a, WorkspaceRuleset>
Which kind of iterator are we turning this into?
§fn into_iter(self) -> <&'a WorkspaceRules as IntoIterator>::IntoIter
fn into_iter(self) -> <&'a WorkspaceRules as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
§impl<'a> IntoIterator for &'a mut WorkspaceRules
impl<'a> IntoIterator for &'a mut WorkspaceRules
§type Item = &'a mut WorkspaceRuleset
type Item = &'a mut WorkspaceRuleset
The type of the elements being iterated over.
§type IntoIter = IterMut<'a, WorkspaceRuleset>
type IntoIter = IterMut<'a, WorkspaceRuleset>
Which kind of iterator are we turning this into?
§fn into_iter(self) -> <&'a mut WorkspaceRules as IntoIterator>::IntoIter
fn into_iter(self) -> <&'a mut WorkspaceRules as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
§impl IntoIterator for WorkspaceRules
impl IntoIterator for WorkspaceRules
§type Item = WorkspaceRuleset
type Item = WorkspaceRuleset
The type of the elements being iterated over.
§type IntoIter = IntoIter<WorkspaceRuleset>
type IntoIter = IntoIter<WorkspaceRuleset>
Which kind of iterator are we turning this into?
§fn into_iter(self) -> <WorkspaceRules as IntoIterator>::IntoIter
fn into_iter(self) -> <WorkspaceRules as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
Auto Trait Implementations§
impl Freeze for WorkspaceRules
impl RefUnwindSafe for WorkspaceRules
impl Send for WorkspaceRules
impl Sync for WorkspaceRules
impl Unpin for WorkspaceRules
impl UnwindSafe for WorkspaceRules
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