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

Method optional

src/ast/affiliated_keyword.rs:29–35  ·  view source on GitHub ↗

```rust use orgize::{Org, ast::AffiliatedKeyword}; let keyword = Org::parse("#+CAPTION: VALUE\nabc").first_node:: ().unwrap(); assert!(keyword.optional().is_none()); let keyword = Org::parse("#+CAPTION[OPTIONAL]: VALUE\nabc").first_node:: ().unwrap(); assert_eq!(keyword.optional().unwrap(), "OPTIONAL"); ```

(&self)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

filter_tokenFunction · 0.85

Tested by

no test coverage detected