Skip to navigation

Generated from cargo doc --no-deps -p nemo-relay-builtins -p nemo-relay-diagnostics -p nemo-relay-logging -p nemo-relay-plugin-host -p nemo-relay-codecs -p nemo-relay -p nemo-relay-runtime -p nemo-relay-model-pricing -p nemo-relay-resource-metrics -p nemo-relay-observability -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.

pub struct ContentCursor { /* private fields */ }

Forward-only traversal state, independent of the borrowed source lifetime.

Keep one cursor per immutable selected view. Bindings can retain this state beside owned snapshot storage without a self-referential iterator or copying content. A copied cursor records a position for constant-time entry access.

Implementations

impl ContentCursor

impl ContentCursor

next_part

pub fn next_part<'a>(
    &mut self,
    view: MessageView<'a>,
) -> Option<ContentEntry<'a>>

Read the next typed part. Exhaustion is permanent for this cursor.

next_text

pub fn next_text<'a>(&mut self, view: MessageView<'a>) -> Option<&'a str>

Read the next eligible borrowed string using the shared extraction policy.

Trait Implementations

impl Clone for ContentCursor

impl Clone for ContentCursor

clone

fn clone(&self) -> ContentCursor

clone_from

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

impl Debug for ContentCursor

impl Debug for ContentCursor

fmt

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

impl Default for ContentCursor

impl Default for ContentCursor

default

fn default() -> ContentCursor

impl Copy for ContentCursor

impl Copy for ContentCursor