Trait nekolib::traits::max::Max

source ·
pub trait Max: Ord {
    // Required method
    fn max() -> Self;
}
Expand description

最大元を持つ。

Examples

use nekolib::traits::Max;

let max: i8 = Max::max();
for x in std::i8::MIN..=std::i8::MAX {
    assert!(x <= max);
}

Required Methods§

source

fn max() -> Self

最大元を返す。

Implementations on Foreign Types§

source§

impl Max for i8

source§

fn max() -> Self

source§

impl<A: Max> Max for (A,)

source§

fn max() -> Self

source§

impl<A: Max, B: Max, C: Max> Max for (A, B, C)

source§

fn max() -> Self

source§

impl<A: Max, B: Max, C: Max, D: Max, E: Max, F: Max, G: Max, H: Max> Max for (A, B, C, D, E, F, G, H)

source§

fn max() -> Self

source§

impl Max for u64

source§

fn max() -> Self

source§

impl<A: Max, B: Max, C: Max, D: Max, E: Max, F: Max, G: Max> Max for (A, B, C, D, E, F, G)

source§

fn max() -> Self

source§

impl Max for bool

source§

fn max() -> Self

source§

impl Max for usize

source§

fn max() -> Self

source§

impl Max for char

source§

fn max() -> Self

source§

impl<A: Max, B: Max, C: Max, D: Max, E: Max, F: Max, G: Max, H: Max, I: Max, J: Max> Max for (A, B, C, D, E, F, G, H, I, J)

source§

fn max() -> Self

source§

impl<A: Max, B: Max, C: Max, D: Max> Max for (A, B, C, D)

source§

fn max() -> Self

source§

impl Max for u32

source§

fn max() -> Self

source§

impl<A: Max, B: Max, C: Max, D: Max, E: Max, F: Max, G: Max, H: Max, I: Max> Max for (A, B, C, D, E, F, G, H, I)

source§

fn max() -> Self

source§

impl Max for i128

source§

fn max() -> Self

source§

impl Max for ()

source§

fn max() -> Self

source§

impl Max for u16

source§

fn max() -> Self

source§

impl Max for u128

source§

fn max() -> Self

source§

impl<A: Max, B: Max, C: Max, D: Max, E: Max, F: Max> Max for (A, B, C, D, E, F)

source§

fn max() -> Self

source§

impl Max for i64

source§

fn max() -> Self

source§

impl<A: Max, B: Max, C: Max, D: Max, E: Max, F: Max, G: Max, H: Max, I: Max, J: Max, K: Max, L: Max> Max for (A, B, C, D, E, F, G, H, I, J, K, L)

source§

fn max() -> Self

source§

impl<A: Max, B: Max, C: Max, D: Max, E: Max> Max for (A, B, C, D, E)

source§

fn max() -> Self

source§

impl<A: Max, B: Max, C: Max, D: Max, E: Max, F: Max, G: Max, H: Max, I: Max, J: Max, K: Max> Max for (A, B, C, D, E, F, G, H, I, J, K)

source§

fn max() -> Self

source§

impl<A: Max, B: Max> Max for (A, B)

source§

fn max() -> Self

source§

impl Max for u8

source§

fn max() -> Self

source§

impl Max for i32

source§

fn max() -> Self

source§

impl Max for i16

source§

fn max() -> Self

source§

impl Max for isize

source§

fn max() -> Self

Implementors§