[][src]Struct vimwiki_server::components::ListItem

pub struct ListItem {
    pub item_type: ListItemType,
    pub suffix: ListItemSuffix,
    pub pos: usize,
    pub contents: ListItemContents,
}

Represents an item in a list

Fields

item_type: ListItemTypesuffix: ListItemSuffixpos: usizecontents: ListItemContents

Implementations

impl ListItem[src]

pub fn is_unordered(&self) -> bool[src]

Indicates whether or not this list item represents an unordered item

pub fn is_ordered(&self) -> bool[src]

Indicates whether or not this list item represents an ordered item

pub fn to_prefix(&self) -> String[src]

Allocates a new string to represent the prefix of this list item

impl ListItem[src]

pub fn new(
    item_type: ListItemType,
    suffix: ListItemSuffix,
    pos: usize,
    contents: ListItemContents
) -> ListItem
[src]

Trait Implementations

impl AsMut<ListItem> for EnhancedListItem[src]

impl AsRef<ListItem> for EnhancedListItem[src]

impl Clone for ListItem[src]

impl Debug for ListItem[src]

impl Default for ListItem[src]

impl<'de> Deserialize<'de> for ListItem[src]

impl Eq for ListItem[src]

impl From<EnhancedListItem> for ListItem[src]

impl From<ListItem> for EnhancedListItem[src]

impl PartialEq<ListItem> for ListItem[src]

impl Serialize for ListItem[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,