Enum kgdata::models::entity::StatementRank
source · pub enum StatementRank {
Normal,
Preferred,
Deprecated,
}
Variants§
Implementations§
source§impl StatementRank
impl StatementRank
pub fn to_str(&self) -> &'static str
pub fn intersect(&self, another: &StatementRank) -> StatementRank
Trait Implementations§
source§impl Clone for StatementRank
impl Clone for StatementRank
source§fn clone(&self) -> StatementRank
fn clone(&self) -> StatementRank
Returns a copy 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 StatementRank
impl Debug for StatementRank
source§impl<'de> Deserialize<'de> for StatementRank
impl<'de> Deserialize<'de> for StatementRank
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for StatementRank
impl PartialEq for StatementRank
source§fn eq(&self, other: &StatementRank) -> bool
fn eq(&self, other: &StatementRank) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PyClassImpl for StatementRank
impl PyClassImpl for StatementRank
source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
#[pyclass(subclass)]
source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
#[pyclass(extends=…)]
source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
#[pyclass(mapping)]
source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
#[pyclass(sequence)]
§type Layout = PyCell<StatementRank>
type Layout = PyCell<StatementRank>
Layout
§type ThreadChecker = ThreadCheckerStub<StatementRank>
type ThreadChecker = ThreadCheckerStub<StatementRank>
This handles following two situations: Read more
type Inventory = Pyo3MethodsInventoryForStatementRank
§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Immutable or mutable
§type BaseNativeType = PyAny
type BaseNativeType = PyAny
The closest native ancestor. This is
PyAny
by default, and when you declare
#[pyclass(extends=PyDict)]
, it’s PyDict
.fn items_iter() -> PyClassItemsIter
fn lazy_type_object() -> &'static LazyTypeObject<Self>
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a StatementRank
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a StatementRank
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut StatementRank
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut StatementRank
source§impl PyTypeInfo for StatementRank
impl PyTypeInfo for StatementRank
§type AsRefTarget = PyCell<StatementRank>
type AsRefTarget = PyCell<StatementRank>
Utility type to make Py::as_ref work.
source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Returns the PyTypeObject instance for this type.
source§fn type_object(py: Python<'_>) -> &PyType
fn type_object(py: Python<'_>) -> &PyType
Returns the safe abstraction over the type object.
source§fn is_type_of(object: &PyAny) -> bool
fn is_type_of(object: &PyAny) -> bool
Checks if
object
is an instance of this type or a subclass of this type.source§fn is_exact_type_of(object: &PyAny) -> bool
fn is_exact_type_of(object: &PyAny) -> bool
Checks if
object
is an instance of this type.source§impl Serialize for StatementRank
impl Serialize for StatementRank
impl Eq for StatementRank
impl StructuralPartialEq for StatementRank
Auto Trait Implementations§
impl Freeze for StatementRank
impl RefUnwindSafe for StatementRank
impl Send for StatementRank
impl Sync for StatementRank
impl Unpin for StatementRank
impl UnwindSafe for StatementRank
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