[][src]Struct stdweb::web::TokenList

pub struct TokenList(_);

The TokenList represents a set of space-separated tokens.

(JavaScript docs)

Methods

impl TokenList[src]

pub fn len(&self) -> u32[src]

Gets the number of tokens in the list.

(JavaScript docs)

pub fn add(&self, token: &str) -> Result<(), TODO>[src]

Adds token to the underlying string.

(JavaScript docs)

pub fn remove(&self, token: &str) -> Result<(), TODO>[src]

Removes token from the underlying string.

(JavaScript docs)

pub fn contains(&self, token: &str) -> bool[src]

Returns true if the underlying string contains token, otherwise false.

(JavaScript docs)

Trait Implementations

impl JsSerialize for TokenList[src]

impl TryFrom<TokenList> for Reference[src]

type Error = Void

The type returned in the event of a conversion error.

impl TryFrom<Reference> for TokenList[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl<'_r> TryFrom<&'_r Reference> for TokenList[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Value> for TokenList[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl<'_r> TryFrom<&'_r Value> for TokenList[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl InstanceOf for TokenList[src]

impl ReferenceType for TokenList[src]

impl Eq for TokenList[src]

impl Clone for TokenList[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<TokenList> for TokenList[src]

impl AsRef<Reference> for TokenList[src]

impl From<TokenList> for Reference[src]

impl Debug for TokenList[src]

Auto Trait Implementations

impl Send for TokenList

impl Sync for TokenList

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]