Struct jlrs::value::string::JuliaString [−][src]
A raw Julia string.
Implementations
impl<'frame> JuliaString<'frame>
[src]
pub fn len(self) -> usize
[src]
Returns the length of the string.
pub fn as_c_str(self) -> &'frame CStr
[src]
Returns the string as a CStr
.
pub fn as_slice(self) -> &'frame [u8]
[src]
Returns the string as a slice of bytes without the terminating \0
.
pub fn as_str(self) -> JlrsResult<&'frame str>
[src]
Returns the string as a string slice, or an error if it the string contains invalid characters
pub unsafe fn as_str_unchecked(self) -> &'frame str
[src]
Returns the string as a string slice without checking if the string is properly encoded.
pub fn as_value(self) -> Value<'frame, 'static>
[src]
Convert self
to a Value
.
Trait Implementations
impl<'frame, 'data> Cast<'frame, 'data> for JuliaString<'frame>
[src]
type Output = Self
fn cast(value: Value<'frame, 'data>) -> JlrsResult<Self::Output>
[src]
unsafe fn cast_unchecked(value: Value<'frame, 'data>) -> Self::Output
[src]
impl<'frame> Clone for JuliaString<'frame>
[src]
fn clone(&self) -> JuliaString<'frame>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'frame> Copy for JuliaString<'frame>
[src]
impl<'scope> Debug for JuliaString<'scope>
[src]
impl<'frame> Into<Value<'frame, 'static>> for JuliaString<'frame>
[src]
impl<'frame> JuliaType for JuliaString<'frame>
[src]
unsafe fn julia_type() -> *mut jl_datatype_t
[src]
impl<'frame> JuliaTypecheck for JuliaString<'frame>
[src]
unsafe fn julia_typecheck(t: DataType<'_>) -> bool
[src]
impl<'frame> TemporarySymbol for JuliaString<'frame>
[src]
impl<'frame> ValidLayout for JuliaString<'frame>
[src]
unsafe fn valid_layout(v: Value<'_, '_>) -> bool
[src]
Auto Trait Implementations
impl<'frame> RefUnwindSafe for JuliaString<'frame>
impl<'frame> !Send for JuliaString<'frame>
impl<'frame> !Sync for JuliaString<'frame>
impl<'frame> Unpin for JuliaString<'frame>
impl<'frame> UnwindSafe for JuliaString<'frame>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,