pub enum Arg {
Known(String),
Unknown(String),
Below {
folder: String,
source: String,
},
}Expand description
One value the code hands to a call, as far as the reader knows it.
Variants§
Known(String)
Its value is in the text: 'target', '~/x'.
Unknown(String)
Only known when the code runs (a name nothing sets, a call’s result): its source text.
Below
A path that starts as the code says and ends in something only known
when it runs: somewhere in a folder ('/home/me/.ssh/id_' + name is a
file in /home/me/.ssh/). Not a value, but the folder is known, and a
caller judges a read of the path by it.
Implementations§
Trait Implementations§
impl Eq for Arg
impl StructuralPartialEq for Arg
Auto Trait Implementations§
impl Forget for Arg
impl Freeze for Arg
impl Move for Arg
impl RefUnwindSafe for Arg
impl Send for Arg
impl Sync for Arg
impl Unpin for Arg
impl UnsafeUnpin for Arg
impl UnwindSafe for Arg
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