Struct amethyst_cli::TEMPLATED_VERSIONS [−]
pub struct TEMPLATED_VERSIONS { /* fields omitted */ }
Methods from __Deref<Target = Vec<Version>>
pub fn capacity(&self) -> usize
1.0.0[src]
pub fn capacity(&self) -> usize
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);
pub fn as_slice(&self) -> &[T]
1.7.0[src]
pub fn as_slice(&self) -> &[T]
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();
pub fn len(&self) -> usize
1.0.0[src]
pub fn len(&self) -> usize
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);
pub fn is_empty(&self) -> bool
1.0.0[src]
pub fn is_empty(&self) -> bool
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 __Deref for TEMPLATED_VERSIONS
impl __Deref for TEMPLATED_VERSIONS
type Target = Vec<Version>
The resulting type after dereferencing.
fn deref(&self) -> &Vec<Version>
fn deref(&self) -> &Vec<Version>
Dereferences the value.
impl LazyStatic for TEMPLATED_VERSIONS
impl LazyStatic for TEMPLATED_VERSIONS
fn initialize(lazy: &Self)
fn initialize(lazy: &Self)
Auto Trait Implementations
impl Send for TEMPLATED_VERSIONS
impl Send for TEMPLATED_VERSIONS
impl Sync for TEMPLATED_VERSIONS
impl Sync for TEMPLATED_VERSIONS