pub trait ShlAssignSpecImpl<Rhs = Self>: ShlAssign<Rhs> {
// Required methods
exec fn obeys_shl_assign_spec() -> bool;
exec fn shl_assign_req(&self, rhs: Rhs) -> bool;
exec fn shl_assign_spec(&self, rhs: Rhs) -> &Self;
}Required Methods§
Sourceexec fn obeys_shl_assign_spec() -> bool
exec fn obeys_shl_assign_spec() -> bool
Sourceexec fn shl_assign_req(&self, rhs: Rhs) -> bool
exec fn shl_assign_req(&self, rhs: Rhs) -> bool
Sourceexec fn shl_assign_spec(&self, rhs: Rhs) -> &Self
exec fn shl_assign_spec(&self, rhs: Rhs) -> &Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl ShlAssignSpecImpl for i8
impl ShlAssignSpecImpl for i8
Source§open spec fn obeys_shl_assign_spec() -> bool
open spec fn obeys_shl_assign_spec() -> bool
{ true }Source§open spec fn shl_assign_req(&self, rhs: i8) -> bool
open spec fn shl_assign_req(&self, rhs: i8) -> bool
{ rhs < i8::BITS }Source§open spec fn shl_assign_spec(&self, rhs: i8) -> &Self
open spec fn shl_assign_spec(&self, rhs: i8) -> &Self
{ &(self << rhs) }Source§impl ShlAssignSpecImpl for i16
impl ShlAssignSpecImpl for i16
Source§open spec fn obeys_shl_assign_spec() -> bool
open spec fn obeys_shl_assign_spec() -> bool
{ true }Source§open spec fn shl_assign_req(&self, rhs: i16) -> bool
open spec fn shl_assign_req(&self, rhs: i16) -> bool
{ rhs < i16::BITS }Source§open spec fn shl_assign_spec(&self, rhs: i16) -> &Self
open spec fn shl_assign_spec(&self, rhs: i16) -> &Self
{ &(self << rhs) }Source§impl ShlAssignSpecImpl for i32
impl ShlAssignSpecImpl for i32
Source§open spec fn obeys_shl_assign_spec() -> bool
open spec fn obeys_shl_assign_spec() -> bool
{ true }Source§open spec fn shl_assign_req(&self, rhs: i32) -> bool
open spec fn shl_assign_req(&self, rhs: i32) -> bool
{ rhs < i32::BITS }Source§open spec fn shl_assign_spec(&self, rhs: i32) -> &Self
open spec fn shl_assign_spec(&self, rhs: i32) -> &Self
{ &(self << rhs) }Source§impl ShlAssignSpecImpl for i64
impl ShlAssignSpecImpl for i64
Source§open spec fn obeys_shl_assign_spec() -> bool
open spec fn obeys_shl_assign_spec() -> bool
{ true }Source§open spec fn shl_assign_req(&self, rhs: i64) -> bool
open spec fn shl_assign_req(&self, rhs: i64) -> bool
{ rhs < i64::BITS }Source§open spec fn shl_assign_spec(&self, rhs: i64) -> &Self
open spec fn shl_assign_spec(&self, rhs: i64) -> &Self
{ &(self << rhs) }Source§impl ShlAssignSpecImpl for i128
impl ShlAssignSpecImpl for i128
Source§open spec fn obeys_shl_assign_spec() -> bool
open spec fn obeys_shl_assign_spec() -> bool
{ true }Source§open spec fn shl_assign_req(&self, rhs: i128) -> bool
open spec fn shl_assign_req(&self, rhs: i128) -> bool
{ rhs < i128::BITS }Source§open spec fn shl_assign_spec(&self, rhs: i128) -> &Self
open spec fn shl_assign_spec(&self, rhs: i128) -> &Self
{ &(self << rhs) }Source§impl ShlAssignSpecImpl for isize
impl ShlAssignSpecImpl for isize
Source§open spec fn obeys_shl_assign_spec() -> bool
open spec fn obeys_shl_assign_spec() -> bool
{ true }Source§open spec fn shl_assign_req(&self, rhs: isize) -> bool
open spec fn shl_assign_req(&self, rhs: isize) -> bool
{ rhs < isize::BITS }Source§open spec fn shl_assign_spec(&self, rhs: isize) -> &Self
open spec fn shl_assign_spec(&self, rhs: isize) -> &Self
{ &(self << rhs) }Source§impl ShlAssignSpecImpl for u8
impl ShlAssignSpecImpl for u8
Source§open spec fn obeys_shl_assign_spec() -> bool
open spec fn obeys_shl_assign_spec() -> bool
{ true }Source§open spec fn shl_assign_req(&self, rhs: u8) -> bool
open spec fn shl_assign_req(&self, rhs: u8) -> bool
{ rhs < u8::BITS }Source§open spec fn shl_assign_spec(&self, rhs: u8) -> &Self
open spec fn shl_assign_spec(&self, rhs: u8) -> &Self
{ &(self << rhs) }Source§impl ShlAssignSpecImpl for u16
impl ShlAssignSpecImpl for u16
Source§open spec fn obeys_shl_assign_spec() -> bool
open spec fn obeys_shl_assign_spec() -> bool
{ true }Source§open spec fn shl_assign_req(&self, rhs: u16) -> bool
open spec fn shl_assign_req(&self, rhs: u16) -> bool
{ rhs < u16::BITS }Source§open spec fn shl_assign_spec(&self, rhs: u16) -> &Self
open spec fn shl_assign_spec(&self, rhs: u16) -> &Self
{ &(self << rhs) }Source§impl ShlAssignSpecImpl for u32
impl ShlAssignSpecImpl for u32
Source§open spec fn obeys_shl_assign_spec() -> bool
open spec fn obeys_shl_assign_spec() -> bool
{ true }Source§open spec fn shl_assign_req(&self, rhs: u32) -> bool
open spec fn shl_assign_req(&self, rhs: u32) -> bool
{ rhs < u32::BITS }Source§open spec fn shl_assign_spec(&self, rhs: u32) -> &Self
open spec fn shl_assign_spec(&self, rhs: u32) -> &Self
{ &(self << rhs) }Source§impl ShlAssignSpecImpl for u64
impl ShlAssignSpecImpl for u64
Source§open spec fn obeys_shl_assign_spec() -> bool
open spec fn obeys_shl_assign_spec() -> bool
{ true }Source§open spec fn shl_assign_req(&self, rhs: u64) -> bool
open spec fn shl_assign_req(&self, rhs: u64) -> bool
{ rhs < u64::BITS }Source§open spec fn shl_assign_spec(&self, rhs: u64) -> &Self
open spec fn shl_assign_spec(&self, rhs: u64) -> &Self
{ &(self << rhs) }Source§impl ShlAssignSpecImpl for u128
impl ShlAssignSpecImpl for u128
Source§open spec fn obeys_shl_assign_spec() -> bool
open spec fn obeys_shl_assign_spec() -> bool
{ true }Source§open spec fn shl_assign_req(&self, rhs: u128) -> bool
open spec fn shl_assign_req(&self, rhs: u128) -> bool
{ rhs < u128::BITS }Source§open spec fn shl_assign_spec(&self, rhs: u128) -> &Self
open spec fn shl_assign_spec(&self, rhs: u128) -> &Self
{ &(self << rhs) }Source§impl ShlAssignSpecImpl for usize
impl ShlAssignSpecImpl for usize
Source§open spec fn obeys_shl_assign_spec() -> bool
open spec fn obeys_shl_assign_spec() -> bool
{ true }Source§open spec fn shl_assign_req(&self, rhs: usize) -> bool
open spec fn shl_assign_req(&self, rhs: usize) -> bool
{ rhs < usize::BITS }Source§open spec fn shl_assign_spec(&self, rhs: usize) -> &Self
open spec fn shl_assign_spec(&self, rhs: usize) -> &Self
{ &(self << rhs) }