pub struct Text {
pub text: String,
}
Expand description
An SGF Text 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::Text;
let text = Text { text: "Comment:\nnon-linebreak whitespace\treplaced".to_string() };
assert_eq!(format!("{}", text), "Comment:\nnon-linebreak whitespace replaced");
Fields§
§text: String
Trait Implementations§
impl Eq for Text
impl StructuralPartialEq for Text
Auto Trait Implementations§
impl Freeze for Text
impl RefUnwindSafe for Text
impl Send for Text
impl Sync for Text
impl Unpin for Text
impl UnwindSafe for Text
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more