Struct v8::value::String [] [src]

pub struct String(_, _);

A JavaScript string value (ECMA-262, 4.3.17).

Methods

impl String
[src]

Allocates a new string from UTF-8 data.

Allocates a new internalized string from UTF-8 data.

Returns the number of characters in this string.

Returns the number of bytes in the UTF-8 encoded representation of this string.

Returns whether this string is known to contain only one byte data.

Does not read the string.

False negatives are possible.

Returns whether this string contain only one byte data.

Will read the entire string in some cases.

Creates a string from a set of raw pointers.

Returns the underlying raw pointer behind this string.

Methods from Deref<Target=Name>

Returns the identity hash for this object.

The current implementation uses an inline property on the object to store the identity hash.

The return value will never be 0. Also, it is not guaranteed to be unique.

Returns the underlying raw pointer behind this primitive.

Trait Implementations

impl Debug for String
[src]

Formats the value using the given formatter.

impl Deref for String
[src]

The resulting type after dereferencing

The method called to dereference a value

impl Clone for String
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Drop for String
[src]

A method called when the value goes out of scope. Read more