Struct jlrs::wrappers::ptr::string::JuliaString [−][src]
#[repr(transparent)]pub struct JuliaString<'scope>(_, _);
Expand description
A Julia string.
Implementations
Create a new Julia string.
Create a new Julia string. Unlike JuliaString::new
this method doesn’t root the
allocated value.
Returns the string as a slice of bytes without the terminating \0
.
Returns the string as a string slice, or an error if it the string contains invalid characters
Returns the string as a string slice without checking if the string is properly encoded.
Trait Implementations
Check if the layout of the implementor is compatible with the layout of ty
. This
argument is a Value
to account for the fact that a field type can be a Union
,
UnionAll
or Union{}
. Read more
Auto Trait Implementations
impl<'scope> RefUnwindSafe for JuliaString<'scope>
impl<'scope> !Send for JuliaString<'scope>
impl<'scope> !Sync for JuliaString<'scope>
impl<'scope> Unpin for JuliaString<'scope>
impl<'scope> UnwindSafe for JuliaString<'scope>
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert the wrapper to its display string, i.e. the string that is shown when calling
Base.show
. Read more
Convert the wrapper to its error string, i.e. the string that is shown when calling
Base.showerror
. This string can contain ANSI color codes if this is enabled by calling
Julia::error_color
, AsyncJulia::error_color
, or AsyncJulia::try_error_color
, . Read more
Convert the wrapper to its display string, i.e. the string that is shown by calling
Base.display
, or some default value. Read more