]>
git.proxmox.com Git - rustc.git/blob - src/liblibc/src/dox.rs
5 pub use core
::option
::Option
;
6 pub use core
::clone
::Clone
;
7 pub use core
::marker
::Copy
;
17 impl<T
: Copy
> Copy
for Option
<T
> {}
18 impl<T
: Clone
> Clone
for Option
<T
> {
19 fn clone(&self) -> Option
<T
> { loop {}
}
23 fn clone(&self) -> Self;
32 macro_rules
! each_int
{
50 fn div(self, rhs
: RHS
) -> Self::Output
;
53 macro_rules
! impl_div
{
57 fn div(self, rhs
: $i
) -> $i { self / rhs }
66 fn shl(self, rhs
: RHS
) -> Self::Output
;
69 macro_rules
! impl_shl
{
73 fn shl(self, rhs
: $i
) -> $i { self << rhs }
80 pub trait Mul
<RHS
=Self> {
82 fn mul(self, rhs
: RHS
) -> Self::Output
;
85 macro_rules
! impl_mul
{
89 fn mul(self, rhs
: $i
) -> $i { self * rhs }
96 pub trait Sub
<RHS
=Self> {
98 fn sub(self, rhs
: RHS
) -> Self::Output
;
101 macro_rules
! impl_sub
{
102 ($
($i
:ident
)*) => ($
(
105 fn sub(self, rhs
: $i
) -> $i { self - rhs }
112 pub trait Bitor
<RHS
=Self> {
114 fn bitor(self, rhs
: RHS
) -> Self::Output
;
117 macro_rules
! impl_bitor
{
118 ($
($i
:ident
)*) => ($
(
121 fn bitor(self, rhs
: $i
) -> $i { self | rhs }
125 each_int
!(impl_bitor
);
128 pub fn size_of_val
<T
>(_
: &T
) -> usize { 4 }