pub struct ActivityKey {
pub name2activity: HashMap<String, Activity>,
pub activity2name: Vec<String>,
pub next_index: usize,
}Fields§
§name2activity: HashMap<String, Activity>§activity2name: Vec<String>§next_index: usizeImplementations§
Source§impl<'a> ActivityKey
impl<'a> ActivityKey
pub fn new() -> ActivityKey
pub fn get_number_of_activities(&self) -> usize
pub fn get_activities(&self) -> Vec<&Activity>
pub fn process_trace(&mut self, trace: &Vec<String>) -> Vec<Activity>
pub fn process_trace_ref(&mut self, trace: &Vec<&str>) -> Vec<Activity>
pub fn get_activity_label(&self, activity: &Activity) -> &str
pub fn process_activity(&mut self, activity: &str) -> Activity
pub fn process_activity_attempt(&self, activity: &str) -> Option<Activity>
pub fn get_activity_by_id(&self, activity_id: usize) -> Activity
pub fn get_id_from_activity(&self, activity: impl Borrow<Activity>) -> usize
pub fn deprocess_trace(&self, trace: &Vec<Activity>) -> Vec<&str>
pub fn deprocess_set( &'a self, set: &HashSet<Vec<Activity>>, ) -> HashSet<Vec<&'a str>>
pub fn deprocess_activity(&self, activity: &Activity) -> &str
Trait Implementations§
Source§impl Clone for ActivityKey
impl Clone for ActivityKey
Source§fn clone(&self) -> ActivityKey
fn clone(&self) -> ActivityKey
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 ActivityKey
impl Debug for ActivityKey
Source§impl Display for ActivityKey
impl Display for ActivityKey
Auto Trait Implementations§
impl Freeze for ActivityKey
impl RefUnwindSafe for ActivityKey
impl Send for ActivityKey
impl Sync for ActivityKey
impl Unpin for ActivityKey
impl UnsafeUnpin for ActivityKey
impl UnwindSafe for ActivityKey
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T, U> OverflowingInto<U> for Twhere
U: OverflowingFrom<T>,
impl<T, U> OverflowingInto<U> for Twhere
U: OverflowingFrom<T>,
fn overflowing_into(self) -> (U, bool)
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T, U> RoundingInto<U> for Twhere
U: RoundingFrom<T>,
impl<T, U> RoundingInto<U> for Twhere
U: RoundingFrom<T>,
fn rounding_into(self, rm: RoundingMode) -> (U, Ordering)
Source§impl<T, U> SaturatingInto<U> for Twhere
U: SaturatingFrom<T>,
impl<T, U> SaturatingInto<U> for Twhere
U: SaturatingFrom<T>,
fn saturating_into(self) -> U
Source§impl<T> ToDebugString for Twhere
T: Debug,
impl<T> ToDebugString for Twhere
T: Debug,
Source§fn to_debug_string(&self) -> String
fn to_debug_string(&self) -> String
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.