pub struct PubLine {
pub tag: char,
pub text: LineText,
}Expand description
A fully public version of the Line struct
Intended for API interaction, since it cannot represent the internal state in Line which could cause trouble if invalid.
From is implemented both ways, to make it easy to convert into and from
Line. Some TryFrom implementations that may be useful also exist.
Fields§
§tag: charThe tag set on the line
See Line .tag() and .set_tag(), but note that we disconnect the
shared tag state through history by converting into this.
text: LineTextThe text data for the line
See [`Line’].text.
Trait Implementations§
source§impl PartialEq for PubLine
impl PartialEq for PubLine
impl Eq for PubLine
impl StructuralEq for PubLine
impl StructuralPartialEq for PubLine
Auto Trait Implementations§
impl RefUnwindSafe for PubLine
impl !Send for PubLine
impl !Sync for PubLine
impl Unpin for PubLine
impl UnwindSafe for PubLine
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