Enum fenris::space::ValuesOrGradients
source · pub enum ValuesOrGradients {
Both,
OnlyValues,
OnlyGradients,
}
Variants§
Implementations§
source§impl ValuesOrGradients
impl ValuesOrGradients
pub fn compute_values(&self) -> bool
pub fn compute_gradients(&self) -> bool
Trait Implementations§
source§impl Clone for ValuesOrGradients
impl Clone for ValuesOrGradients
source§fn clone(&self) -> ValuesOrGradients
fn clone(&self) -> ValuesOrGradients
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 moresource§impl Debug for ValuesOrGradients
impl Debug for ValuesOrGradients
source§impl Default for ValuesOrGradients
impl Default for ValuesOrGradients
source§fn default() -> ValuesOrGradients
fn default() -> ValuesOrGradients
Returns the “default value” for a type. Read more
source§impl PartialEq<ValuesOrGradients> for ValuesOrGradients
impl PartialEq<ValuesOrGradients> for ValuesOrGradients
source§fn eq(&self, other: &ValuesOrGradients) -> bool
fn eq(&self, other: &ValuesOrGradients) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ValuesOrGradients
impl Eq for ValuesOrGradients
impl StructuralEq for ValuesOrGradients
impl StructuralPartialEq for ValuesOrGradients
Auto Trait Implementations§
impl RefUnwindSafe for ValuesOrGradients
impl Send for ValuesOrGradients
impl Sync for ValuesOrGradients
impl Unpin for ValuesOrGradients
impl UnwindSafe for ValuesOrGradients
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
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.