Crate wutil

Source
Expand description

Contains various lightweight utility functions, macros, and wrappers not found in the rust standard library.

Modules§

iter
Contains extensions for rust iterators.
prelude
slice
Contains extentions for rust slices.
span
Contains a thin Copy wrapper around Range<usize>. This has the same layout as Range<usize>.
str
Contains extentions for rust str.

Macros§

cstr
Defines a &'a static CStr from a byte string literal. This does not compile if an invalid CString is supplied.

Structs§

DontDrop
A wrapper that guarentees that the dropper of the underlying object cannot be safely called.
Span
A thin Copy wrapper around Range<usize>. This has the same layout as Range<usize>.

Functions§

transmute_mut
Transmutes between mutable references. This function is safer than casting between pointers because it keeps lifetimes intact. This may be useful when creating FFI wrappers.
transmute_ref
Transmutes between references. This function is safer than casting between pointers because it keeps lifetimes intact. This may be useful when creating FFI wrappers.