Struct stdweb::web::TokenList
[−]
[src]
pub struct 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 Clone for TokenList
[src]
fn clone(&self) -> TokenList
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for TokenList
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for TokenList
[src]
fn eq(&self, __arg_0: &TokenList) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TokenList) -> bool
[src]
This method tests for !=
.
impl Eq for TokenList
[src]
impl InstanceOf for TokenList
[src]
fn instance_of(reference: &Reference) -> bool
[src]
Checks whenever a given Reference if of type Self
.
impl AsRef<Reference> for TokenList
[src]
impl ReferenceType for TokenList
[src]
unsafe fn from_reference_unchecked(reference: Reference) -> Self
[src]
Converts a given reference into a concrete reference-like wrapper. Doesn't do any type checking; highly unsafe to use! Read more
impl From<TokenList> for Reference
[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]
Performs the conversion.
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]
Performs the conversion.
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]
Performs the conversion.
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]
Performs the conversion.
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]
Performs the conversion.