pub struct TokenSentiment {
pub word: String,
pub score: i32,
}Expand description
Sentiment data for a single token.
Fields§
§word: StringThe word/token
score: i32AFINN score (-5 to +5), 0 if not in lexicon
Trait Implementations§
Source§impl Clone for TokenSentiment
impl Clone for TokenSentiment
Source§fn clone(&self) -> TokenSentiment
fn clone(&self) -> TokenSentiment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TokenSentiment
impl Debug for TokenSentiment
Source§impl PartialEq for TokenSentiment
impl PartialEq for TokenSentiment
impl StructuralPartialEq for TokenSentiment
Auto Trait Implementations§
impl Freeze for TokenSentiment
impl RefUnwindSafe for TokenSentiment
impl Send for TokenSentiment
impl Sync for TokenSentiment
impl Unpin for TokenSentiment
impl UnsafeUnpin for TokenSentiment
impl UnwindSafe for TokenSentiment
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