Crate memx[][src]

Expand description

memx minics libc.

Modules

arch
iter
mem

Structs

RangeError

used by memcpy()

Functions

memchr

This mimics libc::memchr(), same as buf.iter().position(|&x| x == c).

memcmp

This mimics libc::memcmp(), same as a.cmp(&b).

memcpy

This mimics libc::memcpy(), same as dst = src.

memeq

This mimics libc::bcmp(), same as a == b.

memmem

This mimics libc::memmem(), same as (haystack as &str).find(needle as &str) or haystack.windows(needle.len()).position(|window| window == needle).

memnechr

This is same as buf.iter().position(|&x| x != c), not included libc.

memrchr

This mimics libc::memrchr(), same as buf.iter().rposition(|&x| x == c).

memrmem

This mimics libc::memrmem(), same as (haystack as &str).rfind(needle as &str) or haystack.windows(needle.len()).rposition(|window| window == needle).

memrnechr

This is same as buf.iter().rposition(|&x| x != c), not included libc.

memset

This mimics libc::memset(), same as buf.fill(c).