MCPcopy Create free account
hub / github.com/PoiScript/orgize / node_at_offset

Method node_at_offset

src/org.rs:87–105  ·  view source on GitHub ↗

Returns node in given offset ```rust use orgize::{Org, ast::Headline}; let org = Org::parse("\n\n* foo\n* bar"); assert!(org.node_at_offset:: (0).is_none()); let hdl = org.node_at_offset:: (2).unwrap(); assert_eq!(hdl.title_raw(), "foo"); let hdl = org.node_at_offset:: (9).unwrap(); assert_eq!(hdl.title_raw(), "bar"); assert!(org.node_at_offset:: (999).is_

(
        &self,
        offset: impl Into<TextSize>,
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected