pub struct TypedPrimitive<const C: usize, P>(pub(crate) P);Tuple Fields§
§0: PImplementations§
Source§impl<const C: usize, P> TypedPrimitive<C, P>
impl<const C: usize, P> TypedPrimitive<C, P>
Source§impl TypedPrimitive<1, u64>
impl TypedPrimitive<1, u64>
pub fn as_raw(&self) -> HummockRawObjectId
Source§impl TypedPrimitive<3, u64>
impl TypedPrimitive<3, u64>
pub fn as_raw(&self) -> HummockRawObjectId
Source§impl TypedPrimitive<4, u64>
impl TypedPrimitive<4, u64>
pub fn as_raw(&self) -> HummockRawObjectId
Trait Implementations§
Source§impl<const C: usize, P: AddAssign> AddAssign<P> for TypedPrimitive<C, P>
impl<const C: usize, P: AddAssign> AddAssign<P> for TypedPrimitive<C, P>
Source§fn add_assign(&mut self, rhs: P)
fn add_assign(&mut self, rhs: P)
Performs the
+= operation. Read moreSource§impl<const C: usize, P> Borrow<P> for TypedPrimitive<C, P>
impl<const C: usize, P> Borrow<P> for TypedPrimitive<C, P>
Source§impl<const C: usize, P: Clone> Clone for TypedPrimitive<C, P>
impl<const C: usize, P: Clone> Clone for TypedPrimitive<C, P>
Source§fn clone(&self) -> TypedPrimitive<C, P>
fn clone(&self) -> TypedPrimitive<C, P>
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<const C: usize, P: Default> Default for TypedPrimitive<C, P>
impl<const C: usize, P: Default> Default for TypedPrimitive<C, P>
Source§fn default() -> TypedPrimitive<C, P>
fn default() -> TypedPrimitive<C, P>
Returns the “default value” for a type. Read more
Source§impl<'de, const C: usize, P: Deserialize<'de>> Deserialize<'de> for TypedPrimitive<C, P>
impl<'de, const C: usize, P: Deserialize<'de>> Deserialize<'de> for TypedPrimitive<C, P>
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<const C: usize, P> From<P> for TypedPrimitive<C, P>
impl<const C: usize, P> From<P> for TypedPrimitive<C, P>
Source§impl From<TypedPrimitive<0, u64>> for HummockSstableObjectId
impl From<TypedPrimitive<0, u64>> for HummockSstableObjectId
Source§fn from(id: HummockRawObjectId) -> Self
fn from(id: HummockRawObjectId) -> Self
Converts to this type from the input type.
Source§impl From<TypedPrimitive<0, u64>> for HummockVectorFileId
impl From<TypedPrimitive<0, u64>> for HummockVectorFileId
Source§fn from(id: HummockRawObjectId) -> Self
fn from(id: HummockRawObjectId) -> Self
Converts to this type from the input type.
Source§impl From<TypedPrimitive<0, u64>> for HummockHnswGraphFileId
impl From<TypedPrimitive<0, u64>> for HummockHnswGraphFileId
Source§fn from(id: HummockRawObjectId) -> Self
fn from(id: HummockRawObjectId) -> Self
Converts to this type from the input type.
Source§impl<const C: usize, P: Ord> Ord for TypedPrimitive<C, P>
impl<const C: usize, P: Ord> Ord for TypedPrimitive<C, P>
Source§fn cmp(&self, other: &TypedPrimitive<C, P>) -> Ordering
fn cmp(&self, other: &TypedPrimitive<C, P>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<const C: usize, P: PartialOrd> PartialOrd for TypedPrimitive<C, P>
impl<const C: usize, P: PartialOrd> PartialOrd for TypedPrimitive<C, P>
impl<const C: usize, P: Copy> Copy for TypedPrimitive<C, P>
impl<const C: usize, P: Eq> Eq for TypedPrimitive<C, P>
impl<const C: usize, P> StructuralPartialEq for TypedPrimitive<C, P>
Auto Trait Implementations§
impl<const C: usize, P> Freeze for TypedPrimitive<C, P>where
P: Freeze,
impl<const C: usize, P> RefUnwindSafe for TypedPrimitive<C, P>where
P: RefUnwindSafe,
impl<const C: usize, P> Send for TypedPrimitive<C, P>where
P: Send,
impl<const C: usize, P> Sync for TypedPrimitive<C, P>where
P: Sync,
impl<const C: usize, P> Unpin for TypedPrimitive<C, P>where
P: Unpin,
impl<const C: usize, P> UnwindSafe for TypedPrimitive<C, P>where
P: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Code for Twhere
T: Serialize + DeserializeOwned,
impl<T> Code for Twhere
T: Serialize + DeserializeOwned,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Forward to the method defined on the type
Any.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Forward to the method defined on the type
Any.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
Source§impl<M> MetricVecRelabelExt for M
impl<M> MetricVecRelabelExt for M
Source§fn relabel(
self,
metric_level: MetricLevel,
relabel_threshold: MetricLevel,
) -> RelabeledMetricVec<M>
fn relabel( self, metric_level: MetricLevel, relabel_threshold: MetricLevel, ) -> RelabeledMetricVec<M>
Equivalent to
RelabeledMetricVec::with_metric_level.Source§fn relabel_n(
self,
metric_level: MetricLevel,
relabel_threshold: MetricLevel,
relabel_num: usize,
) -> RelabeledMetricVec<M>
fn relabel_n( self, metric_level: MetricLevel, relabel_threshold: MetricLevel, relabel_num: usize, ) -> RelabeledMetricVec<M>
Equivalent to
RelabeledMetricVec::with_metric_level_relabel_n.Source§fn relabel_debug_1(
self,
relabel_threshold: MetricLevel,
) -> RelabeledMetricVec<M>
fn relabel_debug_1( self, relabel_threshold: MetricLevel, ) -> RelabeledMetricVec<M>
Equivalent to
RelabeledMetricVec::with_metric_level_relabel_n with metric_level set to
MetricLevel::Debug and relabel_num set to 1.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> SameOrElseExt for Twhere
T: Eq,
impl<T> SameOrElseExt for Twhere
T: Eq,
Source§fn same_or_else(self, other: T, f: impl FnOnce() -> T) -> T
fn same_or_else(self, other: T, f: impl FnOnce() -> T) -> T
Check if
self and other are equal, if so, return self, otherwise return the result of f().§impl<T> Scope for T
impl<T> Scope for T
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.