# Trait num_traits::NumOps

``pub trait NumOps<Rhs = Self, Output = Self>: Add<Rhs, Output = Output> + Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Rem<Rhs, Output = Output> { }``
Expand description

Generic trait for types implementing basic numeric operations

This is automatically implemented for types which implement the operators.

source§
{"ft_lang_label":"__label__en","ft_lang_prob":0.6676582,"math_prob":0.99306035,"size":376,"snap":"2023-14-2023-23","text_gpt3_token_len":92,"char_repetition_ratio":0.26075268,"word_repetition_ratio":0.0,"special_character_ratio":0.25,"punctuation_ratio":0.16393442,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9721782,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-05-30T02:05:07Z\",\"WARC-Record-ID\":\"<urn:uuid:ac5e9e1e-3721-44d4-93eb-a41bd5bf347c>\",\"Content-Length\":\"7947\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:6d616943-b611-4840-a949-1ab18a3c9dbe>\",\"WARC-Concurrent-To\":\"<urn:uuid:9b435785-cacf-49b2-982e-fb80a847c9af>\",\"WARC-IP-Address\":\"185.199.108.153\",\"WARC-Target-URI\":\"https://rust-random.github.io/rand/num_traits/trait.NumOps.html\",\"WARC-Payload-Digest\":\"sha1:S7CFH3A24P3EIXMC5YJUUMSHOSCGV5GI\",\"WARC-Block-Digest\":\"sha1:ISF7T5T6SCCR2DRTCZ65VRNVPTZKJZBS\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-23/CC-MAIN-2023-23_segments_1685224644915.48_warc_CC-MAIN-20230530000715-20230530030715-00118.warc.gz\"}"}