pub enum Identity {
Show 23 variants
String(String),
Usize(usize),
ISize(isize),
I8(i8),
U8(u8),
I16(i16),
U16(u16),
I32(i32),
U32(u32),
Bool(bool),
I64(i64),
U64(u64),
I128(i128),
U128(u128),
Float(f32),
Double(f64),
Quoted(String),
Html(String),
ArrowName([Option<String>; 4]),
RGBA(u8, u8, u8, u8),
HSV(f32, f32, f32),
Point2D(f32, f32, bool),
Point3D(f32, f32, f32, bool),
}
Expand description
An identity in the dot language. You are recommended to construct it in one of the following ways:
- attributes method
Identity::id
for checked id stringsIdentity::quoted
for quoted safe stringsIdentity::from
for numeral types
However, if you need to create some special identities like HTML
, you can use Identity::String
directly.
Variants
String(String)
Usize(usize)
ISize(isize)
I8(i8)
U8(u8)
I16(i16)
U16(u16)
I32(i32)
U32(u32)
Bool(bool)
I64(i64)
U64(u64)
I128(i128)
U128(u128)
Float(f32)
Double(f64)
Quoted(String)
Html(String)
ArrowName([Option<String>; 4])
RGBA(u8, u8, u8, u8)
HSV(f32, f32, f32)
Point2D(f32, f32, bool)
Point3D(f32, f32, f32, bool)
Implementations
sourceimpl Identity
impl Identity
Trait Implementations
sourceimpl From<ClusterMode> for Identity
impl From<ClusterMode> for Identity
sourcefn from(dir: ClusterMode) -> Self
fn from(dir: ClusterMode) -> Self
Converts to this type from the input type.
sourceimpl From<OutputMode> for Identity
impl From<OutputMode> for Identity
sourcefn from(dir: OutputMode) -> Self
fn from(dir: OutputMode) -> Self
Converts to this type from the input type.
sourceimpl From<SmoothType> for Identity
impl From<SmoothType> for Identity
sourcefn from(dir: SmoothType) -> Self
fn from(dir: SmoothType) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnwindSafe for Identity
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more