pub struct Scripts { /* private fields */ }Expand description
Collection of scripts from a project.
Implementations§
Source§impl Scripts
impl Scripts
Sourcepub fn iter_mut(&mut self) -> impl Iterator<Item = &mut Script>
pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut Script>
Get a mutable iterator over the scripts.
Sourcepub fn without_lifecycle(&self) -> Self
pub fn without_lifecycle(&self) -> Self
Filter out lifecycle scripts.
Sourcepub fn without_matching(&self, patterns: &[String]) -> Self
pub fn without_matching(&self, patterns: &[String]) -> Self
Filter out scripts matching the given patterns. Supports glob patterns with ‘*’ wildcard.
Sourcepub fn sort_alphabetically(&mut self)
pub fn sort_alphabetically(&mut self)
Sort scripts alphabetically by name.
Trait Implementations§
Source§impl<'a> IntoIterator for &'a Scripts
impl<'a> IntoIterator for &'a Scripts
Auto Trait Implementations§
impl Freeze for Scripts
impl RefUnwindSafe for Scripts
impl Send for Scripts
impl Sync for Scripts
impl Unpin for Scripts
impl UnwindSafe for Scripts
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