#[repr(i32)]pub enum ChunkingAlgorithm {
Buzhash = 0,
Rollsum = 1,
FixedSize = 2,
}
Variants§
Implementations§
source§impl ChunkingAlgorithm
impl ChunkingAlgorithm
sourcepub fn as_str_name(&self) -> &'static str
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.
sourcepub fn from_str_name(value: &str) -> Option<Self>
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 ChunkingAlgorithm
impl Clone for ChunkingAlgorithm
source§fn clone(&self) -> ChunkingAlgorithm
fn clone(&self) -> ChunkingAlgorithm
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 ChunkingAlgorithm
impl Debug for ChunkingAlgorithm
source§impl Default for ChunkingAlgorithm
impl Default for ChunkingAlgorithm
source§fn default() -> ChunkingAlgorithm
fn default() -> ChunkingAlgorithm
Returns the “default value” for a type. Read more
source§impl From<ChunkingAlgorithm> for i32
impl From<ChunkingAlgorithm> for i32
source§fn from(value: ChunkingAlgorithm) -> i32
fn from(value: ChunkingAlgorithm) -> i32
Converts to this type from the input type.
source§impl Hash for ChunkingAlgorithm
impl Hash for ChunkingAlgorithm
source§impl Ord for ChunkingAlgorithm
impl Ord for ChunkingAlgorithm
source§fn cmp(&self, other: &ChunkingAlgorithm) -> Ordering
fn cmp(&self, other: &ChunkingAlgorithm) -> 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 PartialEq for ChunkingAlgorithm
impl PartialEq for ChunkingAlgorithm
source§fn eq(&self, other: &ChunkingAlgorithm) -> bool
fn eq(&self, other: &ChunkingAlgorithm) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ChunkingAlgorithm
impl PartialOrd for ChunkingAlgorithm
source§fn partial_cmp(&self, other: &ChunkingAlgorithm) -> Option<Ordering>
fn partial_cmp(&self, other: &ChunkingAlgorithm) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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 moresource§impl TryFrom<i32> for ChunkingAlgorithm
impl TryFrom<i32> for ChunkingAlgorithm
§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
source§fn try_from(value: i32) -> Result<ChunkingAlgorithm, DecodeError>
fn try_from(value: i32) -> Result<ChunkingAlgorithm, DecodeError>
Performs the conversion.
impl Copy for ChunkingAlgorithm
impl Eq for ChunkingAlgorithm
impl StructuralPartialEq for ChunkingAlgorithm
Auto Trait Implementations§
impl Freeze for ChunkingAlgorithm
impl RefUnwindSafe for ChunkingAlgorithm
impl Send for ChunkingAlgorithm
impl Sync for ChunkingAlgorithm
impl Unpin for ChunkingAlgorithm
impl UnwindSafe for ChunkingAlgorithm
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