pub enum PreferenceGoalDescription {
Goal(GoalDescription),
Preference(Preference),
}Expand description
Variants§
Goal(GoalDescription)
A required goal, <GD>.
Preference(Preference)
§Requirements
Requires Preferences.
Implementations§
Source§impl PreferenceGoalDescription
impl PreferenceGoalDescription
Sourcepub const fn from_gd(gd: GoalDescription) -> Self
pub const fn from_gd(gd: GoalDescription) -> Self
Creates a required goal from a GoalDescription.
Sourcepub fn from_preference(pref: Preference) -> Self
pub fn from_preference(pref: Preference) -> Self
Creates a preference goal from a Preference.
Trait Implementations§
Source§impl Clone for PreferenceGoalDescription
impl Clone for PreferenceGoalDescription
Source§impl Debug for PreferenceGoalDescription
impl Debug for PreferenceGoalDescription
Source§impl<'de> Deserialize<'de> for PreferenceGoalDescription
Available on crate feature serde only.
impl<'de> Deserialize<'de> for PreferenceGoalDescription
Available on crate feature
serde only.Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<GoalDescription> for PreferenceGoalDescription
impl From<GoalDescription> for PreferenceGoalDescription
Source§fn from(value: GoalDescription) -> Self
fn from(value: GoalDescription) -> Self
Converts to this type from the input type.
Source§impl From<Preference> for PreferenceGoalDescription
impl From<Preference> for PreferenceGoalDescription
Source§fn from(value: Preference) -> Self
fn from(value: Preference) -> Self
Converts to this type from the input type.
Source§impl From<PreferenceGoalDescription> for PreconditionGoalDescription
impl From<PreferenceGoalDescription> for PreconditionGoalDescription
Source§fn from(value: PreferenceGoalDescription) -> Self
fn from(value: PreferenceGoalDescription) -> Self
Converts to this type from the input type.
Source§impl Parser for PreferenceGoalDescription
Available on crate feature parser only.
impl Parser for PreferenceGoalDescription
Available on crate feature
parser only.Source§type Item = PreferenceGoalDescription
type Item = PreferenceGoalDescription
The parsed value;
Self except for
DurationConstraint, which may be empty.Source§impl Serialize for PreferenceGoalDescription
Available on crate feature serde only.
impl Serialize for PreferenceGoalDescription
Available on crate feature
serde only.impl StructuralPartialEq for PreferenceGoalDescription
Source§impl Visitor<PreferenceGoalDescription, RcDoc<'static>> for PrettyRenderer
Available on crate feature pretty only.
impl Visitor<PreferenceGoalDescription, RcDoc<'static>> for PrettyRenderer
Available on crate feature
pretty only.Source§fn visit(&self, value: &PreferenceGoalDescription) -> RcDoc<'static>
fn visit(&self, value: &PreferenceGoalDescription) -> RcDoc<'static>
Visits
value and returns the result.Auto Trait Implementations§
impl Forget for PreferenceGoalDescription
impl Freeze for PreferenceGoalDescription
impl Move for PreferenceGoalDescription
impl RefUnwindSafe for PreferenceGoalDescription
impl Send for PreferenceGoalDescription
impl Sync for PreferenceGoalDescription
impl Unpin for PreferenceGoalDescription
impl UnsafeUnpin for PreferenceGoalDescription
impl UnwindSafe for PreferenceGoalDescription
Blanket Implementations§
Source§impl<V, T, O> AcceptMut<V, T, O> for Twhere
V: VisitorMut<T, O>,
impl<V, T, O> AcceptMut<V, T, O> for Twhere
V: VisitorMut<T, O>,
Source§fn accept_mut(&self, v: &mut V) -> O
fn accept_mut(&self, v: &mut V) -> O
Lets the mutable visitor
v visit self.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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Pretty for Twhere
T: PrettyVisit,
impl<T> Pretty for Twhere
T: PrettyVisit,
Source§impl<T> PrettyVisit for T
impl<T> PrettyVisit for T
Source§fn to_doc(&self, r: &PrettyRenderer) -> RcDoc<'static>
fn to_doc(&self, r: &PrettyRenderer) -> RcDoc<'static>
Available on crate feature
pretty only.Builds the document for
self with the renderer r.