Enum brush_parser::ast::UnaryPredicate
source · pub enum UnaryPredicate {
Show 24 variants
FileExists,
FileExistsAndIsBlockSpecialFile,
FileExistsAndIsCharSpecialFile,
FileExistsAndIsDir,
FileExistsAndIsRegularFile,
FileExistsAndIsSetgid,
FileExistsAndIsSymlink,
FileExistsAndHasStickyBit,
FileExistsAndIsFifo,
FileExistsAndIsReadable,
FileExistsAndIsNotZeroLength,
FdIsOpenTerminal,
FileExistsAndIsSetuid,
FileExistsAndIsWritable,
FileExistsAndIsExecutable,
FileExistsAndOwnedByEffectiveGroupId,
FileExistsAndModifiedSinceLastRead,
FileExistsAndOwnedByEffectiveUserId,
FileExistsAndIsSocket,
ShellOptionEnabled,
ShellVariableIsSetAndAssigned,
ShellVariableIsSetAndNameRef,
StringHasZeroLength,
StringHasNonZeroLength,
}Expand description
A unary predicate usable in an extended test expression.
Variants§
FileExists
Computes if the operand is a path to an existing file.
FileExistsAndIsBlockSpecialFile
Computes if the operand is a path to an existing block device file.
FileExistsAndIsCharSpecialFile
Computes if the operand is a path to an existing character device file.
FileExistsAndIsDir
Computes if the operand is a path to an existing directory.
FileExistsAndIsRegularFile
Computes if the operand is a path to an existing regular file.
FileExistsAndIsSetgid
Computes if the operand is a path to an existing file with the setgid bit set.
FileExistsAndIsSymlink
Computes if the operand is a path to an existing symbolic link.
FileExistsAndHasStickyBit
Computes if the operand is a path to an existing file with the sticky bit set.
FileExistsAndIsFifo
Computes if the operand is a path to an existing FIFO file.
FileExistsAndIsReadable
Computes if the operand is a path to an existing file that is readable.
FileExistsAndIsNotZeroLength
Computes if the operand is a path to an existing file with a non-zero length.
FdIsOpenTerminal
Computes if the operand is a file descriptor that is an open terminal.
FileExistsAndIsSetuid
Computes if the operand is a path to an existing file with the setuid bit set.
FileExistsAndIsWritable
Computes if the operand is a path to an existing file that is writable.
FileExistsAndIsExecutable
Computes if the operand is a path to an existing file that is executable.
FileExistsAndOwnedByEffectiveGroupId
Computes if the operand is a path to an existing file owned by the current context’s effective group ID.
FileExistsAndModifiedSinceLastRead
Computes if the operand is a path to an existing file that has been modified since last being read.
FileExistsAndOwnedByEffectiveUserId
Computes if the operand is a path to an existing file owned by the current context’s effective user ID.
FileExistsAndIsSocket
Computes if the operand is a path to an existing socket file.
ShellOptionEnabled
Computes if the operand is a ‘set -o’ option that is enabled.
ShellVariableIsSetAndAssigned
Computes if the operand names a shell variable that is set and assigned a value.
ShellVariableIsSetAndNameRef
Computes if the operand names a shell variable that is set and of nameref type.
StringHasZeroLength
Computes if the operand is a string with zero length.
StringHasNonZeroLength
Computes if the operand is a string with non-zero length.
Trait Implementations§
source§impl Clone for UnaryPredicate
impl Clone for UnaryPredicate
source§fn clone(&self) -> UnaryPredicate
fn clone(&self) -> UnaryPredicate
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more