[−][src]Struct vimwiki_server::components::DefinitionList
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]
&self,
term: &str
) -> Option<impl Iterator<Item = &LocatedComponent<String>>>
Retrieves the definitions for a term
impl DefinitionList[src]
pub fn new(
terms_and_definitions: HashSet<TermAndDefinitions, RandomState>
) -> DefinitionList[src]
terms_and_definitions: HashSet<TermAndDefinitions, RandomState>
) -> DefinitionList
Trait Implementations
impl Clone for DefinitionList[src]
fn clone(&self) -> DefinitionList[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for DefinitionList[src]
impl Default for DefinitionList[src]
fn default() -> DefinitionList[src]
impl<'de> Deserialize<'de> for DefinitionList[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<DefinitionList, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>, [src]
__deserializer: __D
) -> Result<DefinitionList, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Eq for DefinitionList[src]
impl From<DefinitionList> for BlockComponent[src]
fn from(original: DefinitionList) -> BlockComponent[src]
impl From<Vec<TermAndDefinitions>> for DefinitionList[src]
fn from(term_and_definitions: Vec<TermAndDefinitions>) -> DefinitionList[src]
impl PartialEq<DefinitionList> for DefinitionList[src]
fn eq(&self, other: &DefinitionList) -> bool[src]
fn ne(&self, other: &DefinitionList) -> bool[src]
impl Serialize for DefinitionList[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer, [src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Auto Trait Implementations
impl RefUnwindSafe for DefinitionList
impl Send for DefinitionList
impl Sync for DefinitionList
impl Unpin for DefinitionList
impl UnwindSafe for DefinitionList
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> CloneAny for T where
T: Clone + Any,
T: Clone + Any,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,