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§
Source§impl Clone for SimpleText
impl Clone for SimpleText
Source§fn clone(&self) -> SimpleText
fn clone(&self) -> SimpleText
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SimpleText
impl Debug for SimpleText
Source§impl Display for SimpleText
impl Display for SimpleText
Source§impl From<&str> for SimpleText
impl From<&str> for SimpleText
Source§impl FromStr for SimpleText
impl FromStr for SimpleText
Source§impl Hash for SimpleText
impl Hash for SimpleText
Source§impl PartialEq for SimpleText
impl PartialEq for SimpleText
impl Eq for SimpleText
impl StructuralPartialEq for SimpleText
Auto Trait Implementations§
impl Freeze for SimpleText
impl RefUnwindSafe for SimpleText
impl Send for SimpleText
impl Sync for SimpleText
impl Unpin for SimpleText
impl UnwindSafe for SimpleText
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