Enum cap_fs_ext::FollowSymlinks
source · [−]pub enum FollowSymlinks {
Yes,
No,
}
Expand description
Re-export these to allow them to be used with Reuse
.
Should symlinks be followed in the last component of a path?
This doesn’t affect path components other than the last. So for example in “foo/bar/baz”, if “foo” or “bar” are symlinks, they will always be followed. This enum value only determines whether “baz” is followed.
Instead of passing bare bool
s as parameters, pass a distinct enum so that
the intent is clear.
Variants
Yes
Yes, do follow symlinks in the last component of a path.
No
No, do not follow symlinks in the last component of a path.
Implementations
sourceimpl FollowSymlinks
impl FollowSymlinks
Re-export these to allow them to be used with Reuse
.
sourcepub const fn follow(follow: bool) -> FollowSymlinks
pub const fn follow(follow: bool) -> FollowSymlinks
Convert a bool where true means “follow” and false means “don’t follow”
to a FollowSymlinks
.
Trait Implementations
sourceimpl Clone for FollowSymlinks
impl Clone for FollowSymlinks
sourcefn clone(&self) -> FollowSymlinks
fn clone(&self) -> FollowSymlinks
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 FollowSymlinks
impl Debug for FollowSymlinks
sourceimpl PartialEq<FollowSymlinks> for FollowSymlinks
impl PartialEq<FollowSymlinks> for FollowSymlinks
impl Copy for FollowSymlinks
impl Eq for FollowSymlinks
impl StructuralEq for FollowSymlinks
impl StructuralPartialEq for FollowSymlinks
Auto Trait Implementations
impl RefUnwindSafe for FollowSymlinks
impl Send for FollowSymlinks
impl Sync for FollowSymlinks
impl Unpin for FollowSymlinks
impl UnwindSafe for FollowSymlinks
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
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.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more