[−][src]Struct stdweb::web::TokenList
The TokenList
represents a set of space-separated tokens.
Methods
impl TokenList
[src]
pub fn len(&self) -> u32
[src]
Gets the number of tokens in the list.
pub fn add(&self, token: &str) -> Result<(), TODO>
[src]
Adds token to the underlying string.
pub fn remove(&self, token: &str) -> Result<(), TODO>
[src]
Removes token from the underlying string.
pub fn contains(&self, token: &str) -> bool
[src]
Returns true
if the underlying string contains token, otherwise false
.
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.
fn try_from(value: TokenList) -> Result<Self, Self::Error>
[src]
impl TryFrom<Reference> for TokenList
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(reference: Reference) -> Result<Self, Self::Error>
[src]
impl<'_r> TryFrom<&'_r Reference> for TokenList
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(reference: &Reference) -> Result<Self, Self::Error>
[src]
impl TryFrom<Value> for TokenList
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self, Self::Error>
[src]
impl<'_r> TryFrom<&'_r Value> for TokenList
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: &Value) -> Result<Self, Self::Error>
[src]
impl InstanceOf for TokenList
[src]
fn instance_of(reference: &Reference) -> bool
[src]
impl ReferenceType for TokenList
[src]
unsafe fn from_reference_unchecked(reference: Reference) -> Self
[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
impl Send for TokenList
impl Sync for TokenList
impl Unpin for TokenList
impl UnwindSafe for TokenList
impl RefUnwindSafe for TokenList
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,