pub struct Preference(/* private fields */);
Expand description
Implementations§
Source§impl Preference
impl Preference
pub const fn new(name: Option<PreferenceName>, gd: GoalDefinition) -> Self
Sourcepub fn name(&self) -> &Option<PreferenceName>
pub fn name(&self) -> &Option<PreferenceName>
Gets the optional preference name.
Sourcepub fn goal(&self) -> &GoalDefinition
pub fn goal(&self) -> &GoalDefinition
Gets the goal definition.
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for Preference
impl Clone for Preference
Source§fn clone(&self) -> Preference
fn clone(&self) -> Preference
Returns a duplicate 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 Preference
impl Debug for Preference
Source§impl From<(Option<PreferenceName>, GoalDefinition)> for Preference
impl From<(Option<PreferenceName>, GoalDefinition)> for Preference
Source§fn from(value: (Option<PreferenceName>, GoalDefinition)) -> Self
fn from(value: (Option<PreferenceName>, GoalDefinition)) -> Self
Converts to this type from the input type.
Source§impl From<(PreferenceName, GoalDefinition)> for Preference
impl From<(PreferenceName, GoalDefinition)> for Preference
Source§fn from(value: (PreferenceName, GoalDefinition)) -> Self
fn from(value: (PreferenceName, GoalDefinition)) -> Self
Converts to this type from the input type.
Source§impl From<GoalDefinition> for Preference
impl From<GoalDefinition> for Preference
Source§fn from(value: GoalDefinition) -> Self
fn from(value: GoalDefinition) -> Self
Converts to this type from the input type.
Source§impl From<Preference> for PreconditionGoalDefinition
impl From<Preference> for PreconditionGoalDefinition
Source§fn from(value: Preference) -> Self
fn from(value: Preference) -> Self
Converts to this type from the input type.
Source§impl From<Preference> for PreferenceGD
impl From<Preference> for PreferenceGD
Source§fn from(value: Preference) -> Self
fn from(value: Preference) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Preference
impl PartialEq for Preference
impl StructuralPartialEq for Preference
Auto Trait Implementations§
impl Freeze for Preference
impl RefUnwindSafe for Preference
impl Send for Preference
impl Sync for Preference
impl Unpin for Preference
impl UnwindSafe for Preference
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