We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c83fe4 commit 7ab66a4Copy full SHA for 7ab66a4
src/libcore/reflect.rs
@@ -32,12 +32,12 @@ pub trait MovePtr {
32
33
/// Helper function for alignment calculation.
34
#[inline(always)]
35
-fn align(size: uint, align: uint) -> uint {
+pub fn align(size: uint, align: uint) -> uint {
36
((size + align) - 1u) & !(align - 1u)
37
}
38
39
/// Adaptor to wrap around visitors implementing MovePtr.
40
-struct MovePtrAdaptor<V: TyVisitor MovePtr> {
+pub struct MovePtrAdaptor<V: TyVisitor MovePtr> {
41
inner: V
42
43
pub fn MovePtrAdaptor<V: TyVisitor MovePtr>(v: V) -> MovePtrAdaptor<V> {
0 commit comments