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§
source§impl FollowSymlinks
impl FollowSymlinks
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§
source§impl Clone for FollowSymlinks
impl Clone for FollowSymlinks
source§fn clone(&self) -> FollowSymlinks
fn clone(&self) -> FollowSymlinks
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 FollowSymlinks
impl Debug for FollowSymlinks
source§impl PartialEq<FollowSymlinks> for FollowSymlinks
impl PartialEq<FollowSymlinks> for FollowSymlinks
source§fn eq(&self, other: &FollowSymlinks) -> bool
fn eq(&self, other: &FollowSymlinks) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§
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