Struct serde_lvm::TestNumbers [] [src]

pub struct TestNumbers(_);

Test numbers in a TestSeries

Methods

impl TestNumbers
[src]

[src]

Map a function over the wrapped value, consuming it in the process.

[src]

Map a function over the wrapped value without consuming it.

Methods from Deref<Target = Vec<TestNumber>>

1.0.0
[src]

Returns the number of elements the vector can hold without reallocating.

Examples

let vec: Vec<i32> = Vec::with_capacity(10);
assert_eq!(vec.capacity(), 10);

Important traits for &'a mut [u8]
1.7.0
[src]

Extracts a slice containing the entire vector.

Equivalent to &s[..].

Examples

use std::io::{self, Write};
let buffer = vec![1, 2, 3, 5, 8];
io::sink().write(buffer.as_slice()).unwrap();

1.0.0
[src]

Returns the number of elements in the vector, also referred to as its 'length'.

Examples

let a = vec![1, 2, 3];
assert_eq!(a.len(), 3);

1.0.0
[src]

Returns true if the vector contains no elements.

Examples

let mut v = Vec::new();
assert!(v.is_empty());

v.push(1);
assert!(!v.is_empty());

Trait Implementations

impl Clone for TestNumbers
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for TestNumbers
[src]

[src]

Formats the value using the given formatter. Read more

impl Deref for TestNumbers
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl Borrow<Vec<TestNumber>> for TestNumbers
[src]

Important traits for Vec<u8>
[src]

Immutably borrows from an owned value. Read more

impl AsRef<Vec<TestNumber>> for TestNumbers
[src]

Important traits for Vec<u8>
[src]

Performs the conversion.

impl FromStr for TestNumbers
[src]

The associated error which can be returned from parsing.

[src]

Parses a string s to return a value of this type. Read more

impl<'de> Deserialize<'de> for TestNumbers
[src]

[src]

Deserialize this value from the given Serde deserializer. Read more

impl Display for TestNumbers
[src]

[src]

Formats the value using the given formatter. Read more

impl Serialize for TestNumbers
[src]

[src]

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

impl Send for TestNumbers

impl Sync for TestNumbers