mirror of
https://github.com/nushell/nushell.git
synced 2025-05-02 09:04:30 +02:00
`left =~ right` return true if left contains right, using Rust's `String::contains`. `!~` is the negated version. A new `apply_operator` function is added which decouples evaluation from `Value::compare`. This returns a `Value` and opens the door to implementing `+` for example, though it wouldn't be useful immediately. The `operator!` macro had to be changed slightly as it would choke on `~` in arguments.
17 lines
489 B
Rust
17 lines
489 B
Rust
mod meta;
|
|
mod pretty;
|
|
mod term_colored;
|
|
mod text;
|
|
mod tracable;
|
|
|
|
pub use self::meta::{
|
|
span_for_spanned_list, tag_for_tagged_list, AnchorLocation, HasFallibleSpan, HasSpan, HasTag,
|
|
Span, Spanned, SpannedItem, Tag, Tagged, TaggedItem,
|
|
};
|
|
pub use self::pretty::{
|
|
b, DebugDoc, DebugDocBuilder, PrettyDebug, PrettyDebugWithSource, ShellAnnotation,
|
|
};
|
|
pub use self::term_colored::TermColored;
|
|
pub use self::text::Text;
|
|
pub use self::tracable::{nom_input, NomSpan, TracableContext};
|