Struct protobuf_parse::ProtoPathBuf
source · [−]pub struct ProtoPathBuf { /* private fields */ }
Expand description
Protobuf file relative normalized file path.
Implementations
sourceimpl ProtoPathBuf
impl ProtoPathBuf
Methods from Deref<Target = ProtoPath>
pub fn to_str(&self) -> &str
pub fn to_path(&self) -> &Path
pub fn to_proto_path_buf(&self) -> ProtoPathBuf
Trait Implementations
sourceimpl Borrow<ProtoPath> for ProtoPathBuf
impl Borrow<ProtoPath> for ProtoPathBuf
sourceimpl Clone for ProtoPathBuf
impl Clone for ProtoPathBuf
sourcefn clone(&self) -> ProtoPathBuf
fn clone(&self) -> ProtoPathBuf
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ProtoPathBuf
impl Debug for ProtoPathBuf
sourceimpl Default for ProtoPathBuf
impl Default for ProtoPathBuf
sourcefn default() -> ProtoPathBuf
fn default() -> ProtoPathBuf
Returns the “default value” for a type. Read more
sourceimpl Deref for ProtoPathBuf
impl Deref for ProtoPathBuf
sourceimpl Display for ProtoPathBuf
impl Display for ProtoPathBuf
sourceimpl Hash for ProtoPathBuf
impl Hash for ProtoPathBuf
sourceimpl PartialEq<ProtoPathBuf> for ProtoPathBuf
impl PartialEq<ProtoPathBuf> for ProtoPathBuf
sourcefn eq(&self, other: &ProtoPathBuf) -> bool
fn eq(&self, other: &ProtoPathBuf) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ProtoPathBuf) -> bool
fn ne(&self, other: &ProtoPathBuf) -> bool
This method tests for !=
.
sourceimpl PartialEq<str> for ProtoPathBuf
impl PartialEq<str> for ProtoPathBuf
impl Eq for ProtoPathBuf
impl StructuralEq for ProtoPathBuf
impl StructuralPartialEq for ProtoPathBuf
Auto Trait Implementations
impl RefUnwindSafe for ProtoPathBuf
impl Send for ProtoPathBuf
impl Sync for ProtoPathBuf
impl Unpin for ProtoPathBuf
impl UnwindSafe for ProtoPathBuf
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more