Skip to main content

MethodId

Struct MethodId 

Source
#[repr(transparent)]
pub struct MethodId(pub u16);
Expand description

A typed method identifier. Wraps a u16 discriminant that the compiler resolves from method name strings at compile time.

Known methods get a fixed ID (0..N). Unknown/dynamic methods use MethodId::DYNAMIC (0xFFFF), which causes the VM to fall back to string-based PHF lookup.

Tuple Fields§

§0: u16

Implementations§

Source§

impl MethodId

Source

pub const DYNAMIC: MethodId

Sentinel value for methods not known at compile time. The VM falls back to string-based dispatch for this ID.

Source

pub const TYPE: MethodId

Source

pub const TO_STRING: MethodId

Source

pub const MAP: MethodId

Source

pub const FILTER: MethodId

Source

pub const REDUCE: MethodId

Source

pub const FOR_EACH: MethodId

Source

pub const FIND: MethodId

Source

pub const FIND_INDEX: MethodId

Source

pub const SOME: MethodId

Source

pub const EVERY: MethodId

Source

pub const SORT: MethodId

Source

pub const GROUP_BY: MethodId

Source

pub const FLAT_MAP: MethodId

Source

pub const LEN: MethodId

Source

pub const LENGTH: MethodId

Source

pub const FIRST: MethodId

Source

pub const LAST: MethodId

Source

pub const REVERSE: MethodId

Source

pub const SLICE: MethodId

Source

pub const CONCAT: MethodId

Source

pub const TAKE: MethodId

Source

pub const DROP: MethodId

Source

pub const SKIP: MethodId

Source

pub const INDEX_OF: MethodId

Source

pub const INCLUDES: MethodId

Source

pub const JOIN: MethodId

Source

pub const FLATTEN: MethodId

Source

pub const UNIQUE: MethodId

Source

pub const DISTINCT: MethodId

Source

pub const DISTINCT_BY: MethodId

Source

pub const SUM: MethodId

Source

pub const AVG: MethodId

Source

pub const MIN: MethodId

Source

pub const MAX: MethodId

Source

pub const COUNT: MethodId

Source

pub const WHERE: MethodId

Source

pub const SELECT: MethodId

Source

pub const ORDER_BY: MethodId

Source

pub const THEN_BY: MethodId

Source

pub const TAKE_WHILE: MethodId

Source

pub const SKIP_WHILE: MethodId

Source

pub const SINGLE: MethodId

Source

pub const ANY: MethodId

Source

pub const ALL: MethodId

Source

pub const INNER_JOIN: MethodId

Source

pub const LEFT_JOIN: MethodId

Source

pub const CROSS_JOIN: MethodId

Source

pub const UNION: MethodId

Source

pub const INTERSECT: MethodId

Source

pub const EXCEPT: MethodId

Source

pub const ORIGIN: MethodId

Source

pub const COLUMNS: MethodId

Source

pub const COLUMN: MethodId

Source

pub const HEAD: MethodId

Source

pub const TAIL: MethodId

Source

pub const MEAN: MethodId

Source

pub const DESCRIBE: MethodId

Source

pub const AGGREGATE: MethodId

Source

pub const INDEX_BY: MethodId

Source

pub const LIMIT: MethodId

Source

pub const EXECUTE: MethodId

Source

pub const SIMULATE: MethodId

Source

pub const CORRELATION: MethodId

Source

pub const COVARIANCE: MethodId

Source

pub const ROLLING_SUM: MethodId

Source

pub const ROLLING_MEAN: MethodId

Source

pub const ROLLING_STD: MethodId

Source

pub const DIFF: MethodId

Source

pub const PCT_CHANGE: MethodId

Source

pub const FORWARD_FILL: MethodId

Source

pub const STD: MethodId

Source

pub const TO_ARRAY: MethodId

Source

pub const ABS: MethodId

Source

pub const BETWEEN: MethodId

Source

pub const RESAMPLE: MethodId

Source

pub const TO_FIXED: MethodId

Source

pub const TO_INT: MethodId

Source

pub const TO_NUMBER: MethodId

Source

pub const FLOOR: MethodId

Source

pub const CEIL: MethodId

Source

pub const ROUND: MethodId

Source

pub const TO_UPPER_CASE: MethodId

Source

pub const TO_LOWER_CASE: MethodId

Source

pub const TRIM: MethodId

Source

pub const CONTAINS: MethodId

Source

pub const STARTS_WITH: MethodId

Source

pub const ENDS_WITH: MethodId

Source

pub const SPLIT: MethodId

Source

pub const REPLACE: MethodId

Source

pub const SUBSTRING: MethodId

Source

pub const UNWRAP: MethodId

Source

pub const UNWRAP_OR: MethodId

Source

pub const IS_SOME: MethodId

Source

pub const IS_NONE: MethodId

Source

pub const IS_OK: MethodId

Source

pub const IS_ERR: MethodId

Source

pub const MAP_ERR: MethodId

Source

pub const PUSH: MethodId

Source

pub const POP: MethodId

Source

pub const IS_EMPTY: MethodId

Source

pub const fn is_dynamic(self) -> bool

Returns true if this is a dynamically-dispatched method (not resolved at compile time).

Source

pub fn from_name(name: &str) -> MethodId

Resolve a method name to a MethodId at compile time. Returns MethodId::DYNAMIC for unknown method names.

Source

pub fn name(self) -> Option<&'static str>

Get the canonical method name for a known MethodId. Returns None for DYNAMIC IDs.

Trait Implementations§

Source§

impl Clone for MethodId

Source§

fn clone(&self) -> MethodId

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for MethodId

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for MethodId

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for MethodId

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for MethodId

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for MethodId

Source§

fn eq(&self, other: &MethodId) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for MethodId

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for MethodId

Source§

impl Eq for MethodId

Source§

impl StructuralPartialEq for MethodId

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,