Struct sgf_parse::SimpleText [−][src]
pub struct SimpleText { pub text: String, }
Expand description
An SGF SimpleText value.
The text itself will be the raw text as stored in an sgf file. Displays formatted and escaped as here.
Examples
use sgf_parse::SimpleText; let text = SimpleText { text: "Comment:\nall whitespace\treplaced".to_string() }; assert_eq!(format!("{}", text), "Comment: all whitespace replaced");
Fields
text: String
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for SimpleText
impl Send for SimpleText
impl Sync for SimpleText
impl Unpin for SimpleText
impl UnwindSafe for SimpleText
Blanket Implementations
Mutably borrows from an owned value. Read more