Struct kurobako_core::solver::Capabilities
source · [−]pub struct Capabilities(_);
Expand description
Solver capabilities.
Implementations
sourceimpl Capabilities
impl Capabilities
sourcepub fn new<I>(capabilities: I) -> Self where
I: Iterator<Item = Capability>,
pub fn new<I>(capabilities: I) -> Self where
I: Iterator<Item = Capability>,
Makes a Capabilities
instance that has the given capabilities.
sourcepub fn is_capable(&self, c: Capability) -> bool
pub fn is_capable(&self, c: Capability) -> bool
Returns true
if this instance has the given capability.
sourcepub fn incapables<'a>(
&'a self,
required: &'a Self
) -> impl 'a + Iterator<Item = Capability>
pub fn incapables<'a>(
&'a self,
required: &'a Self
) -> impl 'a + Iterator<Item = Capability>
Iterates over the capabilities required by required
but not owned by this instance.
sourcepub fn iter(&self) -> impl '_ + Iterator<Item = Capability>
pub fn iter(&self) -> impl '_ + Iterator<Item = Capability>
Iterates over all the capabilities that this instance has.
sourcepub fn add_capability(&mut self, c: Capability) -> &mut Self
pub fn add_capability(&mut self, c: Capability) -> &mut Self
Adds the given capability to this instance.
sourcepub fn remove_capability(&mut self, c: Capability) -> &mut Self
pub fn remove_capability(&mut self, c: Capability) -> &mut Self
Removes the given capability from this instance.
Trait Implementations
sourceimpl Clone for Capabilities
impl Clone for Capabilities
sourcefn clone(&self) -> Capabilities
fn clone(&self) -> Capabilities
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Capabilities
impl Debug for Capabilities
sourceimpl Default for Capabilities
impl Default for Capabilities
sourcefn default() -> Capabilities
fn default() -> Capabilities
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for Capabilities
impl<'de> Deserialize<'de> for Capabilities
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Hash for Capabilities
impl Hash for Capabilities
sourceimpl PartialEq<Capabilities> for Capabilities
impl PartialEq<Capabilities> for Capabilities
sourcefn eq(&self, other: &Capabilities) -> bool
fn eq(&self, other: &Capabilities) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Capabilities) -> bool
fn ne(&self, other: &Capabilities) -> bool
This method tests for !=
.
sourceimpl Serialize for Capabilities
impl Serialize for Capabilities
impl Eq for Capabilities
impl StructuralEq for Capabilities
impl StructuralPartialEq for Capabilities
Auto Trait Implementations
impl RefUnwindSafe for Capabilities
impl Send for Capabilities
impl Sync for Capabilities
impl Unpin for Capabilities
impl UnwindSafe for Capabilities
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more