Home
Manual
Topics
Types
Symbols
std_types::positive_integer/std::shift_left
returns the left-shifted value
Parameters
self: a positive integer value
shift_count: a positive integer value
Result
result: the left-shifted integer value
Example
println! 4 << 2
Output
16
Topic
Numbers
Implements
std::shift_left
bitwise shift-left operation
See also
std_types::integer
the prototype object for all integral numbers
std_types::positive_integer
the prototype object for all non-negative integers