library-rs

This documentation is automatically generated by online-judge-tools/verification-helper

View the Project on GitHub naoya675/library-rs

:warning: chmin
(macro/chmin/src/lib.rs)

Description

Code

//! https://qiita.com/maguro_tuna/items/fab200fdc1efde1612e7

macro_rules! chmin {
    ($base:expr, $($ex:expr),+ $(,)*) => {
        let min = min!($($ex),+);
        if $base > min {
            $base = min;
            true
        } else {
            false
        }
    };
}

macro_rules! min {
    ($exa:expr $(,)*) => {
        $exa
    };
    ($exa:expr, $exb:expr $(,)*) => {
        std::cmp::min($exa, $exb)
    };
    ($exa:expr, $($ex:expr),+ $(,)*) => {
        std::cmp::min($exa, min!($($ex),+))
    };
}
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.11.12/x64/lib/python3.11/site-packages/onlinejudge_verify/documentation/build.py", line 71, in _render_source_code_stat
    bundled_code = language.bundle(stat.path, basedir=basedir, options={'include_paths': [basedir]}).decode()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.11.12/x64/lib/python3.11/site-packages/onlinejudge_verify/languages/rust.py", line 288, in bundle
    raise NotImplementedError
NotImplementedError
Back to top page