pub struct Preference(/* private fields */);Expand description
Implementations§
Source§impl Preference
impl Preference
Sourcepub const fn new(name: Option<PreferenceName>, gd: GoalDescription) -> Self
pub const fn new(name: Option<PreferenceName>, gd: GoalDescription) -> Self
Creates a preference (preference [<pref-name>] <GD>) with an optional name.
Sourcepub fn name(&self) -> &Option<PreferenceName>
pub fn name(&self) -> &Option<PreferenceName>
Gets the optional preference name.
Sourcepub fn goal(&self) -> &GoalDescription
pub fn goal(&self) -> &GoalDescription
Gets the goal description.
Trait Implementations§
Source§impl Clone for Preference
impl Clone for Preference
Source§impl Debug for Preference
impl Debug for Preference
Source§impl From<(Option<PreferenceName>, GoalDescription)> for Preference
impl From<(Option<PreferenceName>, GoalDescription)> for Preference
Source§fn from(value: (Option<PreferenceName>, GoalDescription)) -> Self
fn from(value: (Option<PreferenceName>, GoalDescription)) -> Self
Converts to this type from the input type.
Source§impl From<(PreferenceName, GoalDescription)> for Preference
impl From<(PreferenceName, GoalDescription)> for Preference
Source§fn from(value: (PreferenceName, GoalDescription)) -> Self
fn from(value: (PreferenceName, GoalDescription)) -> Self
Converts to this type from the input type.
Source§impl From<GoalDescription> for Preference
impl From<GoalDescription> for Preference
Source§fn from(value: GoalDescription) -> Self
fn from(value: GoalDescription) -> Self
Converts to this type from the input type.
Source§impl From<Preference> for PreconditionGoalDescription
impl From<Preference> for PreconditionGoalDescription
Source§fn from(value: Preference) -> Self
fn from(value: Preference) -> 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 PartialEq for Preference
impl PartialEq for Preference
Source§impl Serialize for Preference
Available on crate feature serde only.
impl Serialize for Preference
Available on crate feature
serde only.impl StructuralPartialEq for Preference
Source§impl Visitor<Preference, RcDoc<'static>> for PrettyRenderer
Available on crate feature pretty only.
impl Visitor<Preference, RcDoc<'static>> for PrettyRenderer
Available on crate feature
pretty only.Source§fn visit(&self, value: &Preference) -> RcDoc<'static>
fn visit(&self, value: &Preference) -> RcDoc<'static>
Visits
value and returns the result.Auto Trait Implementations§
impl Forget for Preference
impl Freeze for Preference
impl Move for Preference
impl RefUnwindSafe for Preference
impl Send for Preference
impl Sync for Preference
impl Unpin for Preference
impl UnsafeUnpin for Preference
impl UnwindSafe for Preference
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,
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.