Struct sixtyfps_corelib::SharedString [−][src]
#[repr(C)]pub struct SharedString { /* fields omitted */ }
Expand description
A string type used by the SixtyFPS run-time.
SharedString uses implicit data sharing to make it efficient to pass around copies. When cloning, a reference to the data is cloned, not the data itself. The data itself is only copied when modifying it, for example using push_str. This is also called copy-on-write.
Under the hood the string data is UTF-8 encoded and it is always terminated with a null character.
Implementations
Size of the string, in bytes. This excludes the terminating null character.
Trait Implementations
type Output = SharedString
type Output = SharedString
The resulting type after applying the +
operator.
Performs the +
operation. Read more
Performs the +=
operation. Read more
Performs the conversion.
Performs the conversion.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for SharedString
impl Send for SharedString
impl Sync for SharedString
impl Unpin for SharedString
impl UnwindSafe for SharedString
Blanket Implementations
Mutably borrows from an owned value. Read more