Trait arcdps::evtc::TryExtract

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§

fn can_extract(event: &Event) -> bool

Checks whether Self can be extracted from the event.

Provided Methods§

fn try_extract(event: &Event) -> Option<Self>

Attempts to extract Self from the combat event.

Object Safety§

This trait is not object safe.

Implementors§