module::is_slice

Macro to answer the question: is it a slice?

Try out from the repository

shell test git clone https://github.com/Wandalen/wTools cd wTools cd sample/rust/is_slice_trivial cargo run

To add to your project

cargo add is_slice

Sample

``` rust sample test use is_slice::*;

fn main() {

dbg!( isslice!( Box::new( true ) ) ); // < isslice!(Box :: new(true)) = false dbg!( isslice!( &[ 1, 2, 3 ] ) ); // < isslice!(& [1, 2, 3]) = false dbg!( isslice!( &[ 1, 2, 3 ][ .. ] ) ); // < isslice!(& [1, 2, 3] [..]) = true

} ```