pub enum PrefTimedGD {
Required(TimedGD),
Preference(Option<PreferenceName>, TimedGD),
}Expand description
Variants§
Implementations§
Source§impl PrefTimedGD
impl PrefTimedGD
pub const fn new_required(gd: TimedGD) -> Self
pub const fn new_preference(name: Option<PreferenceName>, gd: TimedGD) -> Self
Trait Implementations§
Source§impl Clone for PrefTimedGD
impl Clone for PrefTimedGD
Source§fn clone(&self) -> PrefTimedGD
fn clone(&self) -> PrefTimedGD
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 PrefTimedGD
impl Debug for PrefTimedGD
Source§impl From<(Option<PreferenceName>, TimedGD)> for PrefTimedGD
impl From<(Option<PreferenceName>, TimedGD)> for PrefTimedGD
Source§impl From<PrefTimedGD> for DurativeActionGoalDefinition
impl From<PrefTimedGD> for DurativeActionGoalDefinition
Source§fn from(value: PrefTimedGD) -> Self
fn from(value: PrefTimedGD) -> Self
Converts to this type from the input type.
Source§impl From<TimedGD> for PrefTimedGD
impl From<TimedGD> for PrefTimedGD
Source§impl Parser for PrefTimedGD
Available on crate feature parser only.
impl Parser for PrefTimedGD
Available on crate feature
parser only.Source§fn parse<'a, S: Into<Span<'a>>>(input: S) -> ParseResult<'a, Self::Item>
fn parse<'a, S: Into<Span<'a>>>(input: S) -> ParseResult<'a, Self::Item>
See parse_pref_timed_gd.
type Item = PrefTimedGD
Source§fn parse_span(input: Span<'_>) -> ParseResult<'_, Self::Item>
fn parse_span(input: Span<'_>) -> ParseResult<'_, Self::Item>
Parses the
input into the specified Item type.Source§fn from_str(input: &str) -> Result<Self::Item, Err<ParseError<'_>>>
fn from_str(input: &str) -> Result<Self::Item, Err<ParseError<'_>>>
Uses the
Parser::parse method to parse the input and, if successful,
discards the unparsed remaining input.Source§impl PartialEq for PrefTimedGD
impl PartialEq for PrefTimedGD
impl StructuralPartialEq for PrefTimedGD
Auto Trait Implementations§
impl Freeze for PrefTimedGD
impl RefUnwindSafe for PrefTimedGD
impl Send for PrefTimedGD
impl Sync for PrefTimedGD
impl Unpin for PrefTimedGD
impl UnwindSafe for PrefTimedGD
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