}</pre><divclass='docblock'><p>A generic trait for converting a number to a value.</p>
</div>
<h2id='required-methods'>Required Methods</h2>
<divclass='methods'>
<h3id='tymethod.from_i64'class='method'><spanid='from_i64.v'class='invisible'><code>fn <ahref='#tymethod.from_i64'class='fnname'>from_i64</a>(n: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><Self></code></span></h3><divclass='docblock'><p>Convert an <code>i64</code> to return an optional value of this type. If the
type cannot be represented by this value, the <code>None</code> is returned.</p>
</div><h3id='tymethod.from_u64'class='method'><spanid='from_u64.v'class='invisible'><code>fn <ahref='#tymethod.from_u64'class='fnname'>from_u64</a>(n: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><Self></code></span></h3><divclass='docblock'><p>Convert an <code>u64</code> to return an optional value of this type. If the
type cannot be represented by this value, the <code>None</code> is returned.</p>
</div></div>
<h2id='provided-methods'>Provided Methods</h2>
<divclass='methods'>
<h3id='method.from_isize'class='method'><spanid='from_isize.v'class='invisible'><code>fn <ahref='#method.from_isize'class='fnname'>from_isize</a>(n: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><Self></code></span></h3><divclass='docblock'><p>Convert an <code>isize</code> to return an optional value of this type. If the
value cannot be represented by this value, the <code>None</code> is returned.</p>
</div><h3id='method.from_i8'class='method'><spanid='from_i8.v'class='invisible'><code>fn <ahref='#method.from_i8'class='fnname'>from_i8</a>(n: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><Self></code></span></h3><divclass='docblock'><p>Convert an <code>i8</code> to return an optional value of this type. If the
type cannot be represented by this value, the <code>None</code> is returned.</p>
</div><h3id='method.from_i16'class='method'><spanid='from_i16.v'class='invisible'><code>fn <ahref='#method.from_i16'class='fnname'>from_i16</a>(n: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><Self></code></span></h3><divclass='docblock'><p>Convert an <code>i16</code> to return an optional value of this type. If the
type cannot be represented by this value, the <code>None</code> is returned.</p>
</div><h3id='method.from_i32'class='method'><spanid='from_i32.v'class='invisible'><code>fn <ahref='#method.from_i32'class='fnname'>from_i32</a>(n: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><Self></code></span></h3><divclass='docblock'><p>Convert an <code>i32</code> to return an optional value of this type. If the
type cannot be represented by this value, the <code>None</code> is returned.</p>
</div><h3id='method.from_usize'class='method'><spanid='from_usize.v'class='invisible'><code>fn <ahref='#method.from_usize'class='fnname'>from_usize</a>(n: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><Self></code></span></h3><divclass='docblock'><p>Convert a <code>usize</code> to return an optional value of this type. If the
type cannot be represented by this value, the <code>None</code> is returned.</p>
</div><h3id='method.from_u8'class='method'><spanid='from_u8.v'class='invisible'><code>fn <ahref='#method.from_u8'class='fnname'>from_u8</a>(n: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><Self></code></span></h3><divclass='docblock'><p>Convert an <code>u8</code> to return an optional value of this type. If the
type cannot be represented by this value, the <code>None</code> is returned.</p>
</div><h3id='method.from_u16'class='method'><spanid='from_u16.v'class='invisible'><code>fn <ahref='#method.from_u16'class='fnname'>from_u16</a>(n: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><Self></code></span></h3><divclass='docblock'><p>Convert an <code>u16</code> to return an optional value of this type. If the
type cannot be represented by this value, the <code>None</code> is returned.</p>
</div><h3id='method.from_u32'class='method'><spanid='from_u32.v'class='invisible'><code>fn <ahref='#method.from_u32'class='fnname'>from_u32</a>(n: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><Self></code></span></h3><divclass='docblock'><p>Convert an <code>u32</code> to return an optional value of this type. If the
type cannot be represented by this value, the <code>None</code> is returned.</p>
</div><h3id='method.from_f32'class='method'><spanid='from_f32.v'class='invisible'><code>fn <ahref='#method.from_f32'class='fnname'>from_f32</a>(n: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><Self></code></span></h3><divclass='docblock'><p>Convert a <code>f32</code> to return an optional value of this type. If the
type cannot be represented by this value, the <code>None</code> is returned.</p>
</div><h3id='method.from_f64'class='method'><spanid='from_f64.v'class='invisible'><code>fn <ahref='#method.from_f64'class='fnname'>from_f64</a>(n: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><Self></code></span></h3><divclass='docblock'><p>Convert a <code>f64</code> to return an optional value of this type. If the
type cannot be represented by this value, the <code>None</code> is returned.</p>