Struct initiative_core::world::command::ParsedThing
source · pub struct ParsedThing<T> {
pub thing_data: T,
pub unknown_words: Vec<Range<usize>>,
pub word_count: usize,
}
Fields§
§thing_data: T
§unknown_words: Vec<Range<usize>>
§word_count: usize
Implementations§
source§impl<T: Into<ThingData>> ParsedThing<T>
impl<T: Into<ThingData>> ParsedThing<T>
pub fn into_thing_data(self) -> ParsedThing<ThingData>
Trait Implementations§
source§impl<T: Clone> Clone for ParsedThing<T>
impl<T: Clone> Clone for ParsedThing<T>
source§fn clone(&self) -> ParsedThing<T>
fn clone(&self) -> ParsedThing<T>
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<T: Debug> Debug for ParsedThing<T>
impl<T: Debug> Debug for ParsedThing<T>
source§impl<T: Default> Default for ParsedThing<T>
impl<T: Default> Default for ParsedThing<T>
source§impl<T: Into<ThingData>> From<ParsedThing<T>> for ThingData
impl<T: Into<ThingData>> From<ParsedThing<T>> for ThingData
source§fn from(input: ParsedThing<T>) -> Self
fn from(input: ParsedThing<T>) -> Self
Converts to this type from the input type.
source§impl FromStr for ParsedThing<NpcData>
impl FromStr for ParsedThing<NpcData>
source§impl FromStr for ParsedThing<PlaceData>
impl FromStr for ParsedThing<PlaceData>
source§impl FromStr for ParsedThing<ThingData>
impl FromStr for ParsedThing<ThingData>
source§impl<T: PartialEq> PartialEq for ParsedThing<T>
impl<T: PartialEq> PartialEq for ParsedThing<T>
source§fn eq(&self, other: &ParsedThing<T>) -> bool
fn eq(&self, other: &ParsedThing<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: Eq> Eq for ParsedThing<T>
impl<T> StructuralPartialEq for ParsedThing<T>
Auto Trait Implementations§
impl<T> Freeze for ParsedThing<T>where
T: Freeze,
impl<T> RefUnwindSafe for ParsedThing<T>where
T: RefUnwindSafe,
impl<T> Send for ParsedThing<T>where
T: Send,
impl<T> Sync for ParsedThing<T>where
T: Sync,
impl<T> Unpin for ParsedThing<T>where
T: Unpin,
impl<T> UnwindSafe for ParsedThing<T>where
T: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)