Struct donet_core::dckeyword::DCKeywordList
source · pub struct DCKeywordList<'dc> {
keywords: Vec<&'dc DCKeyword>,
kw_name_2_keyword: KeywordName2Keyword<'dc>,
flags: HistoricalFlag,
}
Expand description
This is a list of DCKeyword
structures, which represent
communication keywords that may be set on a particular field.
Fields§
§keywords: Vec<&'dc DCKeyword>
§kw_name_2_keyword: KeywordName2Keyword<'dc>
§flags: HistoricalFlag
Implementations§
source§impl<'dc> DCKeywordList<'dc>
impl<'dc> DCKeywordList<'dc>
sourcepub fn get_num_keywords(&self) -> usize
pub fn get_num_keywords(&self) -> usize
Returns the number of keywords in this keyword list.
sourcepub fn has_keyword(&self, kw: IdentifyKeyword) -> bool
pub fn has_keyword(&self, kw: IdentifyKeyword) -> bool
Returns true
if given keyword identifier or struct
is present in this keyword list.
sourcepub fn get_keyword(&self, index: usize) -> Option<&'dc DCKeyword>
pub fn get_keyword(&self, index: usize) -> Option<&'dc DCKeyword>
Returns DCKeyword
reference by index, wrapped in an Option.
sourcepub fn get_keyword_by_name(&self, name: String) -> Option<&'dc DCKeyword>
pub fn get_keyword_by_name(&self, name: String) -> Option<&'dc DCKeyword>
Returns DCKeyword
reference by given name, wrapped in an Option.
sourcepub fn _get_keywords_by_name_map(&self) -> KeywordName2Keyword<'_>
pub fn _get_keywords_by_name_map(&self) -> KeywordName2Keyword<'_>
Returns a clone of this object’s keyword name map.
Trait Implementations§
source§impl<'dc> Debug for DCKeywordList<'dc>
impl<'dc> Debug for DCKeywordList<'dc>
source§impl<'dc> Display for DCKeywordList<'dc>
impl<'dc> Display for DCKeywordList<'dc>
source§impl<'dc> LegacyDCHash for DCKeywordList<'dc>
impl<'dc> LegacyDCHash for DCKeywordList<'dc>
source§fn generate_hash(&self, hashgen: &mut DCHashGenerator)
fn generate_hash(&self, hashgen: &mut DCHashGenerator)
Accumulates the properties of this DC element into the file hash.
source§impl<'dc> PartialEq for DCKeywordList<'dc>
impl<'dc> PartialEq for DCKeywordList<'dc>
Auto Trait Implementations§
impl<'dc> Freeze for DCKeywordList<'dc>
impl<'dc> RefUnwindSafe for DCKeywordList<'dc>
impl<'dc> Send for DCKeywordList<'dc>
impl<'dc> Sync for DCKeywordList<'dc>
impl<'dc> Unpin for DCKeywordList<'dc>
impl<'dc> UnwindSafe for DCKeywordList<'dc>
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