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 for FollowSymlinks
impl PartialEq for FollowSymlinks
impl Copy for FollowSymlinks
impl Eq for FollowSymlinks
impl StructuralPartialEq for FollowSymlinks
Auto Trait Implementations§
impl Freeze for FollowSymlinks
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