Skip to main content

attr_string

Function attr_string 

Source
pub fn attr_string(name: &str, value: &str) -> AttributeProto
Expand description

Construct an AttributeProto of type STRING. The proto stores strings as s: Vec<u8>; this helper hides the bytes encoding. Used by ops carrying structured-string metadata (e.g. comma-separated TypeNode denotation lists on composite Bundle / Unbundle).