Struct janetrs::JanetKeyword
source · pub struct JanetKeyword<'data> { /* private fields */ }
Expand description
Janet keyword. Janet being a lisp-like language a keyword is not a especial word of the language, it is a normal string that can be defined by the user.
Implementations§
source§impl JanetKeyword<'_>
impl JanetKeyword<'_>
sourcepub fn new(name: impl AsRef<[u8]>) -> Self
pub fn new(name: impl AsRef<[u8]>) -> Self
Create a JanetKeyword
with given name
.
If the given name
is bigger than i32::MAX the generated symbol will have a name
truncated to that max size. That’s unrealistic thought.
§Examples
use janetrs::JanetKeyword;
let k = JanetKeyword::new("name");
sourcepub const unsafe fn from_raw(raw: *const u8) -> Self
pub const unsafe fn from_raw(raw: *const u8) -> Self
Create a new JanetKeyword
with a raw
pointer.
§Safety
This function do not check if the given raw
is NULL
or not. Use at your
own risk.
sourcepub fn len(&self) -> i32
pub fn len(&self) -> i32
Returns the length of this JanetKeyword
, in bytes, not char
s or graphemes.
In other words, it may not be what a human considers the length of the string.
§Examples
use janetrs::JanetKeyword;
let k = JanetKeyword::new("name");
assert_eq!(k.len(), 4);
sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true
if this JanetKeyword
has a length of zero, and false
otherwise.
§Examples
use janetrs::JanetKeyword;
let k = JanetKeyword::new("name");
assert!(!k.is_empty());
Trait Implementations§
source§impl AsRef<[u8]> for JanetKeyword<'_>
impl AsRef<[u8]> for JanetKeyword<'_>
source§impl AsRef<BStr> for JanetKeyword<'_>
impl AsRef<BStr> for JanetKeyword<'_>
source§impl Clone for JanetKeyword<'_>
impl Clone for JanetKeyword<'_>
source§impl Debug for JanetKeyword<'_>
impl Debug for JanetKeyword<'_>
source§impl Display for JanetKeyword<'_>
impl Display for JanetKeyword<'_>
source§impl From<&[u8]> for JanetKeyword<'_>
impl From<&[u8]> for JanetKeyword<'_>
source§impl From<&JanetBuffer<'_>> for JanetKeyword<'_>
impl From<&JanetBuffer<'_>> for JanetKeyword<'_>
source§fn from(buff: &JanetBuffer<'_>) -> Self
fn from(buff: &JanetBuffer<'_>) -> Self
Converts to this type from the input type.
source§impl From<&JanetKeyword<'_>> for Janet
impl From<&JanetKeyword<'_>> for Janet
source§fn from(val: &JanetKeyword<'_>) -> Self
fn from(val: &JanetKeyword<'_>) -> Self
Converts to this type from the input type.
source§impl From<&JanetKeyword<'_>> for JanetBuffer<'_>
impl From<&JanetKeyword<'_>> for JanetBuffer<'_>
source§fn from(s: &JanetKeyword<'_>) -> Self
fn from(s: &JanetKeyword<'_>) -> Self
Converts to this type from the input type.
source§impl From<&JanetKeyword<'_>> for JanetString<'_>
impl From<&JanetKeyword<'_>> for JanetString<'_>
source§fn from(key: &JanetKeyword<'_>) -> Self
fn from(key: &JanetKeyword<'_>) -> Self
Converts to this type from the input type.
source§impl From<&JanetKeyword<'_>> for JanetSymbol<'_>
impl From<&JanetKeyword<'_>> for JanetSymbol<'_>
source§fn from(key: &JanetKeyword<'_>) -> Self
fn from(key: &JanetKeyword<'_>) -> Self
Converts to this type from the input type.
source§impl From<&JanetString<'_>> for JanetKeyword<'_>
impl From<&JanetString<'_>> for JanetKeyword<'_>
source§fn from(string: &JanetString<'_>) -> Self
fn from(string: &JanetString<'_>) -> Self
Converts to this type from the input type.
source§impl From<&JanetSymbol<'_>> for JanetKeyword<'_>
impl From<&JanetSymbol<'_>> for JanetKeyword<'_>
source§fn from(sym: &JanetSymbol<'_>) -> Self
fn from(sym: &JanetSymbol<'_>) -> Self
Converts to this type from the input type.
source§impl From<&str> for JanetKeyword<'_>
impl From<&str> for JanetKeyword<'_>
source§impl From<JanetBuffer<'_>> for JanetKeyword<'_>
impl From<JanetBuffer<'_>> for JanetKeyword<'_>
source§fn from(buff: JanetBuffer<'_>) -> Self
fn from(buff: JanetBuffer<'_>) -> Self
Converts to this type from the input type.
source§impl From<JanetKeyword<'_>> for Janet
impl From<JanetKeyword<'_>> for Janet
source§fn from(val: JanetKeyword<'_>) -> Self
fn from(val: JanetKeyword<'_>) -> Self
Converts to this type from the input type.
source§impl From<JanetKeyword<'_>> for JanetBuffer<'_>
impl From<JanetKeyword<'_>> for JanetBuffer<'_>
source§fn from(s: JanetKeyword<'_>) -> Self
fn from(s: JanetKeyword<'_>) -> Self
Converts to this type from the input type.
source§impl From<JanetKeyword<'_>> for JanetString<'_>
impl From<JanetKeyword<'_>> for JanetString<'_>
source§fn from(key: JanetKeyword<'_>) -> Self
fn from(key: JanetKeyword<'_>) -> Self
Converts to this type from the input type.
source§impl From<JanetKeyword<'_>> for JanetSymbol<'_>
impl From<JanetKeyword<'_>> for JanetSymbol<'_>
source§fn from(key: JanetKeyword<'_>) -> Self
fn from(key: JanetKeyword<'_>) -> Self
Converts to this type from the input type.
source§impl From<JanetString<'_>> for JanetKeyword<'_>
impl From<JanetString<'_>> for JanetKeyword<'_>
source§fn from(string: JanetString<'_>) -> Self
fn from(string: JanetString<'_>) -> Self
Converts to this type from the input type.
source§impl From<JanetSymbol<'_>> for JanetKeyword<'_>
impl From<JanetSymbol<'_>> for JanetKeyword<'_>
source§fn from(sym: JanetSymbol<'_>) -> Self
fn from(sym: JanetSymbol<'_>) -> Self
Converts to this type from the input type.
source§impl From<String> for JanetKeyword<'_>
impl From<String> for JanetKeyword<'_>
source§impl FromStr for JanetKeyword<'_>
impl FromStr for JanetKeyword<'_>
source§impl JanetTypeName for JanetKeyword<'_>
impl JanetTypeName for JanetKeyword<'_>
source§impl Ord for JanetKeyword<'_>
impl Ord for JanetKeyword<'_>
source§impl<'a, 'b> PartialEq<&'a [u8]> for JanetKeyword<'_>
impl<'a, 'b> PartialEq<&'a [u8]> for JanetKeyword<'_>
source§impl<'a, 'b> PartialEq<&'a BStr> for JanetKeyword<'_>
impl<'a, 'b> PartialEq<&'a BStr> for JanetKeyword<'_>
source§impl<'a, 'b> PartialEq<&'a BString> for JanetKeyword<'_>
impl<'a, 'b> PartialEq<&'a BString> for JanetKeyword<'_>
source§impl<'a, 'b> PartialEq<&'a str> for JanetKeyword<'_>
impl<'a, 'b> PartialEq<&'a str> for JanetKeyword<'_>
source§impl<'a, 'b> PartialEq<[u8]> for JanetKeyword<'_>
impl<'a, 'b> PartialEq<[u8]> for JanetKeyword<'_>
source§impl<'a, 'b> PartialEq<BStr> for JanetKeyword<'_>
impl<'a, 'b> PartialEq<BStr> for JanetKeyword<'_>
source§impl<'a, 'b> PartialEq<BString> for JanetKeyword<'_>
impl<'a, 'b> PartialEq<BString> for JanetKeyword<'_>
source§impl<'a, 'b> PartialEq<JanetKeyword<'_>> for &'a [u8]
impl<'a, 'b> PartialEq<JanetKeyword<'_>> for &'a [u8]
source§fn eq(&self, other: &JanetKeyword<'_>) -> bool
fn eq(&self, other: &JanetKeyword<'_>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a, 'b> PartialEq<JanetKeyword<'_>> for &'a BStr
impl<'a, 'b> PartialEq<JanetKeyword<'_>> for &'a BStr
source§fn eq(&self, other: &JanetKeyword<'_>) -> bool
fn eq(&self, other: &JanetKeyword<'_>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a, 'b> PartialEq<JanetKeyword<'_>> for &'a BString
impl<'a, 'b> PartialEq<JanetKeyword<'_>> for &'a BString
source§fn eq(&self, other: &JanetKeyword<'_>) -> bool
fn eq(&self, other: &JanetKeyword<'_>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a, 'b> PartialEq<JanetKeyword<'_>> for &'a str
impl<'a, 'b> PartialEq<JanetKeyword<'_>> for &'a str
source§fn eq(&self, other: &JanetKeyword<'_>) -> bool
fn eq(&self, other: &JanetKeyword<'_>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a, 'b> PartialEq<JanetKeyword<'_>> for [u8]
impl<'a, 'b> PartialEq<JanetKeyword<'_>> for [u8]
source§fn eq(&self, other: &JanetKeyword<'_>) -> bool
fn eq(&self, other: &JanetKeyword<'_>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a, 'b> PartialEq<JanetKeyword<'_>> for BStr
impl<'a, 'b> PartialEq<JanetKeyword<'_>> for BStr
source§fn eq(&self, other: &JanetKeyword<'_>) -> bool
fn eq(&self, other: &JanetKeyword<'_>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a, 'b> PartialEq<JanetKeyword<'_>> for BString
impl<'a, 'b> PartialEq<JanetKeyword<'_>> for BString
source§fn eq(&self, other: &JanetKeyword<'_>) -> bool
fn eq(&self, other: &JanetKeyword<'_>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<JanetKeyword<'_>> for JanetString<'_>
impl PartialEq<JanetKeyword<'_>> for JanetString<'_>
source§fn eq(&self, other: &JanetKeyword<'_>) -> bool
fn eq(&self, other: &JanetKeyword<'_>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<JanetKeyword<'_>> for JanetSymbol<'_>
impl PartialEq<JanetKeyword<'_>> for JanetSymbol<'_>
source§fn eq(&self, other: &JanetKeyword<'_>) -> bool
fn eq(&self, other: &JanetKeyword<'_>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a, 'b> PartialEq<JanetKeyword<'_>> for String
impl<'a, 'b> PartialEq<JanetKeyword<'_>> for String
source§fn eq(&self, other: &JanetKeyword<'_>) -> bool
fn eq(&self, other: &JanetKeyword<'_>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a, 'b> PartialEq<JanetKeyword<'_>> for Vec<u8>
impl<'a, 'b> PartialEq<JanetKeyword<'_>> for Vec<u8>
source§fn eq(&self, other: &JanetKeyword<'_>) -> bool
fn eq(&self, other: &JanetKeyword<'_>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a, 'b> PartialEq<JanetKeyword<'_>> for str
impl<'a, 'b> PartialEq<JanetKeyword<'_>> for str
source§fn eq(&self, other: &JanetKeyword<'_>) -> bool
fn eq(&self, other: &JanetKeyword<'_>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<JanetString<'_>> for JanetKeyword<'_>
impl PartialEq<JanetString<'_>> for JanetKeyword<'_>
source§fn eq(&self, other: &JanetString<'_>) -> bool
fn eq(&self, other: &JanetString<'_>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<JanetSymbol<'_>> for JanetKeyword<'_>
impl PartialEq<JanetSymbol<'_>> for JanetKeyword<'_>
source§fn eq(&self, other: &JanetSymbol<'_>) -> bool
fn eq(&self, other: &JanetSymbol<'_>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a, 'b> PartialEq<String> for JanetKeyword<'_>
impl<'a, 'b> PartialEq<String> for JanetKeyword<'_>
source§impl<'a, 'b> PartialEq<Vec<u8>> for JanetKeyword<'_>
impl<'a, 'b> PartialEq<Vec<u8>> for JanetKeyword<'_>
source§impl<'a, 'b> PartialEq<str> for JanetKeyword<'_>
impl<'a, 'b> PartialEq<str> for JanetKeyword<'_>
source§impl PartialEq for JanetKeyword<'_>
impl PartialEq for JanetKeyword<'_>
source§impl<'a, 'b> PartialOrd<&'a [u8]> for JanetKeyword<'_>
impl<'a, 'b> PartialOrd<&'a [u8]> for JanetKeyword<'_>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a, 'b> PartialOrd<&'a BStr> for JanetKeyword<'_>
impl<'a, 'b> PartialOrd<&'a BStr> for JanetKeyword<'_>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a, 'b> PartialOrd<&'a BString> for JanetKeyword<'_>
impl<'a, 'b> PartialOrd<&'a BString> for JanetKeyword<'_>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a, 'b> PartialOrd<&'a str> for JanetKeyword<'_>
impl<'a, 'b> PartialOrd<&'a str> for JanetKeyword<'_>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a, 'b> PartialOrd<[u8]> for JanetKeyword<'_>
impl<'a, 'b> PartialOrd<[u8]> for JanetKeyword<'_>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a, 'b> PartialOrd<BStr> for JanetKeyword<'_>
impl<'a, 'b> PartialOrd<BStr> for JanetKeyword<'_>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a, 'b> PartialOrd<BString> for JanetKeyword<'_>
impl<'a, 'b> PartialOrd<BString> for JanetKeyword<'_>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a, 'b> PartialOrd<JanetKeyword<'_>> for &'a [u8]
impl<'a, 'b> PartialOrd<JanetKeyword<'_>> for &'a [u8]
source§fn partial_cmp(&self, other: &JanetKeyword<'_>) -> Option<Ordering>
fn partial_cmp(&self, other: &JanetKeyword<'_>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a, 'b> PartialOrd<JanetKeyword<'_>> for &'a BStr
impl<'a, 'b> PartialOrd<JanetKeyword<'_>> for &'a BStr
source§fn partial_cmp(&self, other: &JanetKeyword<'_>) -> Option<Ordering>
fn partial_cmp(&self, other: &JanetKeyword<'_>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a, 'b> PartialOrd<JanetKeyword<'_>> for &'a BString
impl<'a, 'b> PartialOrd<JanetKeyword<'_>> for &'a BString
source§fn partial_cmp(&self, other: &JanetKeyword<'_>) -> Option<Ordering>
fn partial_cmp(&self, other: &JanetKeyword<'_>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a, 'b> PartialOrd<JanetKeyword<'_>> for &'a str
impl<'a, 'b> PartialOrd<JanetKeyword<'_>> for &'a str
source§fn partial_cmp(&self, other: &JanetKeyword<'_>) -> Option<Ordering>
fn partial_cmp(&self, other: &JanetKeyword<'_>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a, 'b> PartialOrd<JanetKeyword<'_>> for [u8]
impl<'a, 'b> PartialOrd<JanetKeyword<'_>> for [u8]
source§fn partial_cmp(&self, other: &JanetKeyword<'_>) -> Option<Ordering>
fn partial_cmp(&self, other: &JanetKeyword<'_>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a, 'b> PartialOrd<JanetKeyword<'_>> for BStr
impl<'a, 'b> PartialOrd<JanetKeyword<'_>> for BStr
source§fn partial_cmp(&self, other: &JanetKeyword<'_>) -> Option<Ordering>
fn partial_cmp(&self, other: &JanetKeyword<'_>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a, 'b> PartialOrd<JanetKeyword<'_>> for BString
impl<'a, 'b> PartialOrd<JanetKeyword<'_>> for BString
source§fn partial_cmp(&self, other: &JanetKeyword<'_>) -> Option<Ordering>
fn partial_cmp(&self, other: &JanetKeyword<'_>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<JanetKeyword<'_>> for JanetString<'_>
impl PartialOrd<JanetKeyword<'_>> for JanetString<'_>
source§fn partial_cmp(&self, other: &JanetKeyword<'_>) -> Option<Ordering>
fn partial_cmp(&self, other: &JanetKeyword<'_>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<JanetKeyword<'_>> for JanetSymbol<'_>
impl PartialOrd<JanetKeyword<'_>> for JanetSymbol<'_>
source§fn partial_cmp(&self, other: &JanetKeyword<'_>) -> Option<Ordering>
fn partial_cmp(&self, other: &JanetKeyword<'_>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a, 'b> PartialOrd<JanetKeyword<'_>> for String
impl<'a, 'b> PartialOrd<JanetKeyword<'_>> for String
source§fn partial_cmp(&self, other: &JanetKeyword<'_>) -> Option<Ordering>
fn partial_cmp(&self, other: &JanetKeyword<'_>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a, 'b> PartialOrd<JanetKeyword<'_>> for Vec<u8>
impl<'a, 'b> PartialOrd<JanetKeyword<'_>> for Vec<u8>
source§fn partial_cmp(&self, other: &JanetKeyword<'_>) -> Option<Ordering>
fn partial_cmp(&self, other: &JanetKeyword<'_>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a, 'b> PartialOrd<JanetKeyword<'_>> for str
impl<'a, 'b> PartialOrd<JanetKeyword<'_>> for str
source§fn partial_cmp(&self, other: &JanetKeyword<'_>) -> Option<Ordering>
fn partial_cmp(&self, other: &JanetKeyword<'_>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<JanetString<'_>> for JanetKeyword<'_>
impl PartialOrd<JanetString<'_>> for JanetKeyword<'_>
source§fn partial_cmp(&self, other: &JanetString<'_>) -> Option<Ordering>
fn partial_cmp(&self, other: &JanetString<'_>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<JanetSymbol<'_>> for JanetKeyword<'_>
impl PartialOrd<JanetSymbol<'_>> for JanetKeyword<'_>
source§fn partial_cmp(&self, other: &JanetSymbol<'_>) -> Option<Ordering>
fn partial_cmp(&self, other: &JanetSymbol<'_>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a, 'b> PartialOrd<String> for JanetKeyword<'_>
impl<'a, 'b> PartialOrd<String> for JanetKeyword<'_>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a, 'b> PartialOrd<Vec<u8>> for JanetKeyword<'_>
impl<'a, 'b> PartialOrd<Vec<u8>> for JanetKeyword<'_>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a, 'b> PartialOrd<str> for JanetKeyword<'_>
impl<'a, 'b> PartialOrd<str> for JanetKeyword<'_>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd for JanetKeyword<'_>
impl PartialOrd for JanetKeyword<'_>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<Janet> for JanetKeyword<'_>
impl TryFrom<Janet> for JanetKeyword<'_>
impl Eq for JanetKeyword<'_>
Auto Trait Implementations§
impl<'data> Freeze for JanetKeyword<'data>
impl<'data> RefUnwindSafe for JanetKeyword<'data>
impl<'data> !Send for JanetKeyword<'data>
impl<'data> !Sync for JanetKeyword<'data>
impl<'data> Unpin for JanetKeyword<'data>
impl<'data> UnwindSafe for JanetKeyword<'data>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more