Skip to main content

LogosGetChar

Trait LogosGetChar 

Source
pub trait LogosGetChar {
    // Required method
    fn logos_get_char(&self, index: i64) -> char;
}
Expand description

Zero-allocation character access for string comparisons.

Unlike LogosIndex for String which returns a String, this trait returns a char — avoiding heap allocation entirely. Used by the codegen optimizer for string-index-vs-string-index comparisons.

Required Methods§

Source

fn logos_get_char(&self, index: i64) -> char

Implementations on Foreign Types§

Source§

impl LogosGetChar for String

Source§

fn logos_get_char(&self, index: i64) -> char

Implementors§