#[repr(i32)]
pub enum Label {
Show 77 variants Unknown = 0, Abbrev = 1, Acomp = 2, Advcl = 3, Advmod = 4, Amod = 5, Appos = 6, Attr = 7, Aux = 8, Auxpass = 9, Cc = 10, Ccomp = 11, Conj = 12, Csubj = 13, Csubjpass = 14, Dep = 15, Det = 16, Discourse = 17, Dobj = 18, Expl = 19, Goeswith = 20, Iobj = 21, Mark = 22, Mwe = 23, Mwv = 24, Neg = 25, Nn = 26, Npadvmod = 27, Nsubj = 28, Nsubjpass = 29, Num = 30, Number = 31, P = 32, Parataxis = 33, Partmod = 34, Pcomp = 35, Pobj = 36, Poss = 37, Postneg = 38, Precomp = 39, Preconj = 40, Predet = 41, Pref = 42, Prep = 43, Pronl = 44, Prt = 45, Ps = 46, Quantmod = 47, Rcmod = 48, Rcmodrel = 49, Rdrop = 50, Ref = 51, Remnant = 52, Reparandum = 53, Root = 54, Snum = 55, Suff = 56, Tmod = 57, Topic = 58, Vmod = 59, Vocative = 60, Xcomp = 61, Suffix = 62, Title = 63, Advphmod = 64, Auxcaus = 65, Auxvv = 66, Dtmod = 67, Foreign = 68, Kw = 69, List = 70, Nomc = 71, Nomcsubj = 72, Nomcsubjpass = 73, Numc = 74, Cop = 75, Dislocated = 76,
}
Expand description

The parse label enum for the token.

Variants§

§

Unknown = 0

Unknown

§

Abbrev = 1

Abbreviation modifier

§

Acomp = 2

Adjectival complement

§

Advcl = 3

Adverbial clause modifier

§

Advmod = 4

Adverbial modifier

§

Amod = 5

Adjectival modifier of an NP

§

Appos = 6

Appositional modifier of an NP

§

Attr = 7

Attribute dependent of a copular verb

§

Aux = 8

Auxiliary (non-main) verb

§

Auxpass = 9

Passive auxiliary

§

Cc = 10

Coordinating conjunction

§

Ccomp = 11

Clausal complement of a verb or adjective

§

Conj = 12

Conjunct

§

Csubj = 13

Clausal subject

§

Csubjpass = 14

Clausal passive subject

§

Dep = 15

Dependency (unable to determine)

§

Det = 16

Determiner

§

Discourse = 17

Discourse

§

Dobj = 18

Direct object

§

Expl = 19

Expletive

§

Goeswith = 20

Goes with (part of a word in a text not well edited)

§

Iobj = 21

Indirect object

§

Mark = 22

Marker (word introducing a subordinate clause)

§

Mwe = 23

Multi-word expression

§

Mwv = 24

Multi-word verbal expression

§

Neg = 25

Negation modifier

§

Nn = 26

Noun compound modifier

§

Npadvmod = 27

Noun phrase used as an adverbial modifier

§

Nsubj = 28

Nominal subject

§

Nsubjpass = 29

Passive nominal subject

§

Num = 30

Numeric modifier of a noun

§

Number = 31

Element of compound number

§

P = 32

Punctuation mark

§

Parataxis = 33

Parataxis relation

§

Partmod = 34

Participial modifier

§

Pcomp = 35

The complement of a preposition is a clause

§

Pobj = 36

Object of a preposition

§

Poss = 37

Possession modifier

§

Postneg = 38

Postverbal negative particle

§

Precomp = 39

Predicate complement

§

Preconj = 40

Preconjunt

§

Predet = 41

Predeterminer

§

Pref = 42

Prefix

§

Prep = 43

Prepositional modifier

§

Pronl = 44

The relationship between a verb and verbal morpheme

§

Prt = 45

Particle

§

Ps = 46

Associative or possessive marker

§

Quantmod = 47

Quantifier phrase modifier

§

Rcmod = 48

Relative clause modifier

§

Rcmodrel = 49

Complementizer in relative clause

§

Rdrop = 50

Ellipsis without a preceding predicate

§

Ref = 51

Referent

§

Remnant = 52

Remnant

§

Reparandum = 53

Reparandum

§

Root = 54

Root

§

Snum = 55

Suffix specifying a unit of number

§

Suff = 56

Suffix

§

Tmod = 57

Temporal modifier

§

Topic = 58

Topic marker

§

Vmod = 59

Clause headed by an infinite form of the verb that modifies a noun

§

Vocative = 60

Vocative

§

Xcomp = 61

Open clausal complement

§

Suffix = 62

Name suffix

§

Title = 63

Name title

§

Advphmod = 64

Adverbial phrase modifier

§

Auxcaus = 65

Causative auxiliary

§

Auxvv = 66

Helper auxiliary

§

Dtmod = 67

Rentaishi (Prenominal modifier)

§

Foreign = 68

Foreign words

§

Kw = 69

Keyword

§

List = 70

List for chains of comparable items

§

Nomc = 71

Nominalized clause

§

Nomcsubj = 72

Nominalized clausal subject

§

Nomcsubjpass = 73

Nominalized clausal passive

§

Numc = 74

Compound of numeric modifier

§

Cop = 75

Copula

§

Dislocated = 76

Dislocated relation (for fronted/topicalized elements)

Implementations§

source§

impl Label

source

pub fn is_valid(value: i32) -> bool

Returns true if value is a variant of Label.

source

pub fn from_i32(value: i32) -> Option<Label>

👎Deprecated: Use the TryFrom<i32> implementation instead

Converts an i32 to a Label, or None if value is not a valid variant.

source§

impl Label

source

pub fn as_str_name(&self) -> &'static str

String value of the enum field names used in the ProtoBuf definition.

The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.

source

pub fn from_str_name(value: &str) -> Option<Self>

Creates an enum from field names used in the ProtoBuf definition.

Trait Implementations§

source§

impl Clone for Label

source§

fn clone(&self) -> Label

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Label

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Label

source§

fn default() -> Label

Returns the “default value” for a type. Read more
source§

impl From<Label> for i32

source§

fn from(value: Label) -> i32

Converts to this type from the input type.
source§

impl Hash for Label

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for Label

source§

fn cmp(&self, other: &Label) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for Label

source§

fn eq(&self, other: &Label) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for Label

source§

fn partial_cmp(&self, other: &Label) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl TryFrom<i32> for Label

§

type Error = DecodeError

The type returned in the event of a conversion error.
source§

fn try_from(value: i32) -> Result<Label, DecodeError>

Performs the conversion.
source§

impl Copy for Label

source§

impl Eq for Label

source§

impl StructuralPartialEq for Label

Auto Trait Implementations§

§

impl Freeze for Label

§

impl RefUnwindSafe for Label

§

impl Send for Label

§

impl Sync for Label

§

impl Unpin for Label

§

impl UnwindSafe for Label

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more