Expand description
PlainTextItem : Plain positional text, used in collections of brief labels and descriptors.
Fields
position: i32The rank or index of this text item within the collection. Different items cannot occupy the same position within a single collection.
value: StringThe actual plain text.
Implementations
sourceimpl PlainTextItem
impl PlainTextItem
sourcepub fn new(position: i32, value: String) -> PlainTextItem
pub fn new(position: i32, value: String) -> PlainTextItem
Plain positional text, used in collections of brief labels and descriptors.
Trait Implementations
sourceimpl Clone for PlainTextItem
impl Clone for PlainTextItem
sourcefn clone(&self) -> PlainTextItem
fn clone(&self) -> PlainTextItem
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for PlainTextItem
impl Debug for PlainTextItem
sourceimpl Default for PlainTextItem
impl Default for PlainTextItem
sourcefn default() -> PlainTextItem
fn default() -> PlainTextItem
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for PlainTextItem
impl<'de> Deserialize<'de> for PlainTextItem
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<PlainTextItem> for PlainTextItem
impl PartialEq<PlainTextItem> for PlainTextItem
sourcefn eq(&self, other: &PlainTextItem) -> bool
fn eq(&self, other: &PlainTextItem) -> bool
sourceimpl Serialize for PlainTextItem
impl Serialize for PlainTextItem
impl StructuralPartialEq for PlainTextItem
Auto Trait Implementations
impl RefUnwindSafe for PlainTextItem
impl Send for PlainTextItem
impl Sync for PlainTextItem
impl Unpin for PlainTextItem
impl UnwindSafe for PlainTextItem
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more