Skip to main content

zr/
lib.rs

1// Copyright 2026 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#![no_std]
6
7mod defer;
8mod inline_fn;
9mod lossy_utf8;
10mod opaque;
11mod opaque_bytes;
12mod pin_init;
13mod ptr;
14mod static_assert;
15mod string;
16
17pub use defer::{Deferred, defer};
18pub use inline_fn::{
19    DEFAULT_INLINE_FN_SIZE, FnMutWithSig, FnOnceWithSig, FnSig, FnWithSig, InlineFn, InlineFnMut,
20    InlineFnOnce, Local, SendInlineFn, SendInlineFnMut, SendInlineFnOnce, SendOnly, SendSync,
21    SendSyncInlineFn, SendSyncInlineFnMut, SendSyncInlineFnOnce, ThreadSafety,
22};
23pub use lossy_utf8::from_utf8_lossy;
24pub use opaque::{Opaque, OpaqueFacade};
25pub use opaque_bytes::OpaqueBytes;
26pub use ptr::{AtomicConstPtr, ToMutPtr, slice_from_raw_parts, slice_from_raw_parts_mut};
27pub use string::{parse_usize, to_array};