Enum minhook::FunctionId [] [src]

pub enum FunctionId<'a> {
    Ordinal(u16),
    Name(&'a OsStr),
}

A function identifier used for dynamically looking up a function.

Variants

Ordinal(u16)

The function's ordinal value.

Name(&'a OsStr)

The function's name.

Methods

impl<'a> FunctionId<'a>
[src]

fn ordinal(value: u16) -> FunctionId<'static>

Create a function identifier given it's ordinal value.

fn name<N: ?Sized + AsRef<OsStr> + 'a>(name: &'a N) -> FunctionId<'a>

Create a function identifier given it's string name.

Trait Implementations

impl<'a> PartialEq for FunctionId<'a>
[src]

fn eq(&self, __arg_0: &FunctionId<'a>) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &FunctionId<'a>) -> bool

This method tests for !=.

impl<'a> Eq for FunctionId<'a>
[src]

impl<'a> Debug for FunctionId<'a>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<'a> Copy for FunctionId<'a>
[src]

impl<'a> Clone for FunctionId<'a>
[src]

fn clone(&self) -> FunctionId<'a>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more