[][src]Struct vimwiki_server::components::DefinitionList

pub struct DefinitionList { /* fields omitted */ }

Represents a list of terms and definitions, where a term can have multiple definitions associated with it

Implementations

impl DefinitionList[src]

pub fn get(&self, term: &str) -> Option<&TermAndDefinitions>[src]

Retrieves a term and its associated definitions

pub fn iter(&self) -> impl Iterator<Item = &TermAndDefinitions>[src]

Iterates through all term and definitions instances in list

pub fn terms(&self) -> impl Iterator<Item = &LocatedComponent<String>>[src]

Iterates through all terms in the list

pub fn defs_for_term(
    &self,
    term: &str
) -> Option<impl Iterator<Item = &LocatedComponent<String>>>
[src]

Retrieves the definitions for a term

impl DefinitionList[src]

pub fn new(
    terms_and_definitions: HashSet<TermAndDefinitions, RandomState>
) -> DefinitionList
[src]

Trait Implementations

impl Clone for DefinitionList[src]

impl Debug for DefinitionList[src]

impl Default for DefinitionList[src]

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

impl Eq for DefinitionList[src]

impl From<DefinitionList> for BlockComponent[src]

impl From<Vec<TermAndDefinitions>> for DefinitionList[src]

impl PartialEq<DefinitionList> for DefinitionList[src]

impl Serialize for DefinitionList[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>,