Trait arcdps::evtc::extract::TryExtract
source · pub trait TryExtract: Sized + Extract {
// Required method
fn can_extract(event: &Event) -> bool;
// Provided method
fn try_extract(event: &Event) -> Option<Self> { ... }
}
Expand description
Attempts to extract information from a combat event.
Required Methods§
sourcefn can_extract(event: &Event) -> bool
fn can_extract(event: &Event) -> bool
Checks whether Self
can be extracted from the event.
Provided Methods§
sourcefn try_extract(event: &Event) -> Option<Self>
fn try_extract(event: &Event) -> Option<Self>
Attempts to extract Self
from the combat event.
Object Safety§
This trait is not object safe.