Struct donet_core::dckeyword::interim::DCKeywordList
source · pub struct DCKeywordList {
pub keywords: Vec<Rc<DCKeyword>>,
pub kw_name_2_keyword: MultiMap<String, Rc<DCKeyword>>,
pub flags: HistoricalFlag,
}
Fields§
§keywords: Vec<Rc<DCKeyword>>
§kw_name_2_keyword: MultiMap<String, Rc<DCKeyword>>
§flags: HistoricalFlag
Implementations§
source§impl DCKeywordList
impl DCKeywordList
pub fn add_keyword(&mut self, keyword: DCKeyword) -> Result<(), ()>
sourcepub fn copy_keywords(&mut self, target: &DCKeywordList)
pub fn copy_keywords(&mut self, target: &DCKeywordList)
Overwrites the DCKeywords of this list with the target’s DCKeywords.
sourcepub fn _get_keyword_list(&self) -> Vec<Rc<DCKeyword>>
pub fn _get_keyword_list(&self) -> Vec<Rc<DCKeyword>>
Returns a clone of this object’s keyword array.
sourcepub fn _get_keywords_by_name_map(&self) -> MultiMap<String, Rc<DCKeyword>>
pub fn _get_keywords_by_name_map(&self) -> MultiMap<String, Rc<DCKeyword>>
Returns a clone of this object’s keyword name map.
sourcepub fn clear_keywords(&mut self)
pub fn clear_keywords(&mut self)
Clears the DCKeywords array, keyword name map, and
historical flags bitmask from this DCKeywordList
struct.
Trait Implementations§
source§impl Debug for DCKeywordList
impl Debug for DCKeywordList
Auto Trait Implementations§
impl Freeze for DCKeywordList
impl RefUnwindSafe for DCKeywordList
impl !Send for DCKeywordList
impl !Sync for DCKeywordList
impl Unpin for DCKeywordList
impl UnwindSafe for DCKeywordList
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