pub struct PostionFileRange {
pub path: String,
pub range_begin: u64,
pub range_end: u64,
}Fields§
§path: String§range_begin: u64§range_end: u64Implementations§
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 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 Debug for PostionFileRange
impl Debug for PostionFileRange
Source§impl FromStr for PostionFileRange
impl FromStr for PostionFileRange
Source§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 for PostionFileRange
impl PartialEq for PostionFileRange
Source§impl ToString for PostionFileRange
impl ToString for PostionFileRange
impl Eq for PostionFileRange
impl StructuralPartialEq for PostionFileRange
Auto Trait Implementations§
impl Freeze for PostionFileRange
impl RefUnwindSafe for PostionFileRange
impl Send for PostionFileRange
impl Sync for PostionFileRange
impl Unpin for PostionFileRange
impl UnwindSafe for PostionFileRange
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 more