Struct cyfs_lib::PostionFileRange
source · pub struct PostionFileRange {
pub path: String,
pub range_begin: u64,
pub range_end: u64,
}
Fields§
§path: String
§range_begin: u64
§range_end: u64
Implementations§
source§impl PostionFileRange
impl PostionFileRange
pub fn encode(&self) -> String
pub fn decode(value: &str) -> Result<PostionFileRange, BuckyError>
Trait Implementations§
source§impl Clone for PostionFileRange
impl Clone for PostionFileRange
source§fn clone(&self) -> PostionFileRange
fn clone(&self) -> PostionFileRange
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 PostionFileRange
impl Debug for PostionFileRange
source§impl FromStr for PostionFileRange
impl FromStr for PostionFileRange
§type Err = BuckyError
type Err = BuckyError
The associated error which can be returned from parsing.
source§fn from_str(
value: &str
) -> Result<PostionFileRange, <PostionFileRange as FromStr>::Err>
fn from_str( value: &str ) -> Result<PostionFileRange, <PostionFileRange as FromStr>::Err>
Parses a string
s
to return a value of this type. Read moresource§impl PartialEq<PostionFileRange> for PostionFileRange
impl PartialEq<PostionFileRange> for PostionFileRange
source§fn eq(&self, other: &PostionFileRange) -> bool
fn eq(&self, other: &PostionFileRange) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.