[][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 AsRef<Reference> for TokenList[src]

impl From<TokenList> for Reference[src]

impl Clone for TokenList[src]

impl Eq for TokenList[src]

impl PartialEq<TokenList> for TokenList[src]

impl Debug for TokenList[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for T[src]

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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