Enum gremlin_client::structure::GValue

source ·
pub enum GValue {
Show 31 variants Null, Vertex(Vertex), Edge(Edge), VertexProperty(VertexProperty), Property(Property), Uuid(Uuid), Int32(i32), Int64(i64), Float(f32), Double(f64), Date(DateTime<Utc>), List(List), Set(Set), Map(Map), Token(Token), String(String), Path(Path), TraversalMetrics(TraversalMetrics), Metric(Metric), TraversalExplanation(TraversalExplanation), IntermediateRepr(IntermediateRepr), P(P), T(T), Bytecode(Bytecode), Traverser(Traverser), Scope(Scope), Order(Order), Bool(bool), TextP(TextP), Pop(Pop), Cardinality(Cardinality),
}
Expand description

Represent possible values coming from the Gremlin Server

Variants§

§

Null

§

Vertex(Vertex)

§

Edge(Edge)

§

VertexProperty(VertexProperty)

§

Property(Property)

§

Uuid(Uuid)

§

Int32(i32)

§

Int64(i64)

§

Float(f32)

§

Double(f64)

§

Date(DateTime<Utc>)

§

List(List)

§

Set(Set)

§

Map(Map)

§

Token(Token)

§

String(String)

§

Path(Path)

§

TraversalMetrics(TraversalMetrics)

§

Metric(Metric)

§

TraversalExplanation(TraversalExplanation)

§

IntermediateRepr(IntermediateRepr)

§

P(P)

§

T(T)

§

Bytecode(Bytecode)

§

Traverser(Traverser)

§

Scope(Scope)

§

Order(Order)

§

Bool(bool)

§

TextP(TextP)

§

Pop(Pop)

§

Cardinality(Cardinality)

Implementations§

source§

impl GValue

source

pub fn take<T>(self) -> GremlinResult<T>
where T: FromGValue,

Examples found in repository?
examples/path.rs (line 9)
3
4
5
6
7
8
9
10
11
12
13
14
15
fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = GremlinClient::connect("localhost")?;

    let results = client
        .execute("g.V(param).outE().inV().path()", &[("param", &1)])?
        .filter_map(Result::ok)
        .map(|f| f.take::<Path>())
        .collect::<Result<Vec<Path>, _>>()?;

    println!("{:#?}", results);

    Ok(())
}
More examples
Hide additional examples
examples/multithread.rs (line 12)
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = GremlinClient::connect("localhost")?;

    let c = client.clone();

    let result = thread::spawn(move || {
        c.execute("g.V(param)", &[("param", &1)])?
            .filter_map(Result::ok)
            .map(|f| f.take::<Vertex>())
            .collect::<Result<Vec<Vertex>, _>>()
    });

    println!("{:?}", result.join());

    Ok(())
}
examples/vertex.rs (line 9)
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = GremlinClient::connect("localhost")?;

    let results = client
        .execute("g.V(param)", &[("param", &1)])?
        .filter_map(Result::ok)
        .map(|f| f.take::<Vertex>())
        .collect::<Result<Vec<Vertex>, _>>()?;

    println!("Vertex count: {}", results.len());

    let vertex = &results[0];

    println!(
        "Vertex with id: [{}] and label: [{}]",
        vertex.id().get::<i64>()?,
        vertex.label()
    );

    Ok(())
}
examples/connection_options.rs (line 16)
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = GremlinClient::connect(
        ConnectionOptions::builder()
            .host("localhost")
            .port(8182)
            .pool_size(1)
            .credentials("stephen", "password")
            .build(),
    )?;

    let results = client
        .execute("g.V(param)", &[("param", &1)])?
        .filter_map(Result::ok)
        .map(|f| f.take::<Vertex>())
        .collect::<Result<Vec<Vertex>, _>>()?;

    println!("{:?}", results);

    Ok(())
}
examples/edge_properties.rs (line 9)
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = GremlinClient::connect("localhost")?;

    let results = client
        .execute("g.V(param).outE().properties()", &[("param", &1)])?
        .filter_map(Result::ok)
        .map(|f| f.take::<Property>())
        .collect::<Result<Vec<Property>, _>>()?;

    println!("{:?}", results);

    let results = client
        .execute("g.V(param).outE().propertyMap()", &[("param", &1)])?
        .filter_map(Result::ok)
        .map(|f| f.take::<Map>())
        .collect::<Result<Vec<Map>, _>>()?;

    println!("{:?}", results);

    Ok(())
}
examples/edge.rs (line 10)
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = GremlinClient::connect("localhost")?;

    // Find outgoing edges for V[1]
    let results = client
        .execute("g.V(param).outE()", &[("param", &1)])?
        .filter_map(Result::ok)
        .map(|f| f.take::<Edge>())
        .collect::<Result<Vec<Edge>, _>>()?;

    println!("Edges count {}", results.len());

    let first = &results[0];

    println!(
        "Edge with id: [{}] and label: [{}] from: [{}] to: [{}]",
        first.id().get::<i32>()?,
        first.label(),
        first.out_v().id().get::<i64>()?,
        first.in_v().id().get::<i64>()?
    );

    Ok(())
}
source

pub fn get<'a, T>(&'a self) -> GremlinResult<&'a T>
where T: BorrowFromGValue,

Examples found in repository?
examples/vertex_properties.rs (line 22)
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = GremlinClient::connect("localhost")?;

    let results = client
        .execute("g.V(param).properties()", &[("param", &1)])?
        .filter_map(Result::ok)
        .map(|f| f.take::<VertexProperty>())
        .collect::<Result<Vec<VertexProperty>, _>>()?;

    println!("{:?}", results[0].get::<String>()?);

    let results = client
        .execute("g.V(param).propertyMap()", &[("param", &1)])?
        .filter_map(Result::ok)
        .map(|f| f.take::<Map>())
        .collect::<Result<Vec<Map>, _>>()?;

    println!(
        "{:?}",
        results[0]["name"].get::<List>()?[0]
            .get::<VertexProperty>()?
            .get::<String>()?
    );

    Ok(())
}
More examples
Hide additional examples
examples/traversal_complex.rs (line 26)
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = GremlinClient::connect("localhost")?;

    let g = traversal().with_remote(client);

    create_graph(&g)?;

    let result = g
        .v(())
        .has_label("complex_vertex")
        .has(("name", "test1"))
        .out("complex_label")
        .out("complex_label")
        .value_map(())
        .next()?
        .expect("no vertices found");

    println!(
        "Found vertex with name {:?}",
        result["name"].get::<List>().unwrap()[0]
    );

    let results = g
        .v(())
        .has_label("complex_vertex")
        .has(("number", P::gt(3)))
        .to_list()?;

    println!(
        "Found {} vertices with number greater than 3",
        results.len()
    );

    let results = g
        .v(())
        .has_label("complex_vertex")
        .has(("number", P::within((3, 6))))
        .to_list()?;

    println!("Found {} vertices with number 3 or 6", results.len());

    let results = g
        .v(())
        .has_label("complex_vertex")
        .where_(__.out("complex_label").count().is(P::gte(1)))
        .to_list()?;

    println!(
        "Found {} vertices with 1 or more connected edges with label complex_label",
        results.len()
    );

    Ok(())
}

Trait Implementations§

source§

impl Clone for GValue

source§

fn clone(&self) -> GValue

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for GValue

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<&String> for GValue

source§

fn from(val: &String) -> Self

Converts to this type from the input type.
source§

impl From<&Vertex> for GValue

source§

fn from(val: &Vertex) -> Self

Converts to this type from the input type.
source§

impl<'a> From<&'a str> for GValue

source§

fn from(val: &'a str) -> Self

Converts to this type from the input type.
source§

impl From<BTreeMap<String, GValue>> for GValue

source§

fn from(val: BTreeMap<String, GValue>) -> Self

Converts to this type from the input type.
source§

impl From<Bytecode> for GValue

source§

fn from(val: Bytecode) -> GValue

Converts to this type from the input type.
source§

impl From<Cardinality> for GValue

source§

fn from(val: Cardinality) -> GValue

Converts to this type from the input type.
source§

impl From<DateTime<Utc>> for GValue

source§

fn from(val: DateTime<Utc>) -> Self

Converts to this type from the input type.
source§

impl From<Edge> for GValue

source§

fn from(val: Edge) -> Self

Converts to this type from the input type.
source§

impl<A, B> From<Either2<A, B>> for GValue
where A: Into<GValue>, B: Into<GValue>,

source§

fn from(val: Either2<A, B>) -> Self

Converts to this type from the input type.
source§

impl From<GKey> for GValue

source§

fn from(val: GKey) -> Self

Converts to this type from the input type.
source§

impl From<GValue> for Vec<GValue>

source§

fn from(val: GValue) -> Self

Converts to this type from the input type.
source§

impl From<GValue> for VecDeque<GValue>

source§

fn from(val: GValue) -> Self

Converts to this type from the input type.
source§

impl From<HashMap<GKey, GValue>> for GValue

source§

fn from(val: HashMap<GKey, GValue>) -> Self

Converts to this type from the input type.
source§

impl From<HashMap<String, GValue>> for GValue

source§

fn from(val: HashMap<String, GValue>) -> Self

Converts to this type from the input type.
source§

impl From<Metric> for GValue

source§

fn from(val: Metric) -> Self

Converts to this type from the input type.
source§

impl From<Order> for GValue

source§

fn from(val: Order) -> Self

Converts to this type from the input type.
source§

impl From<P> for GValue

source§

fn from(val: P) -> GValue

Converts to this type from the input type.
source§

impl From<Path> for GValue

source§

fn from(val: Path) -> Self

Converts to this type from the input type.
source§

impl From<Property> for GValue

source§

fn from(val: Property) -> Self

Converts to this type from the input type.
source§

impl From<Scope> for GValue

source§

fn from(val: Scope) -> Self

Converts to this type from the input type.
source§

impl From<String> for GValue

source§

fn from(val: String) -> Self

Converts to this type from the input type.
source§

impl From<T> for GValue

source§

fn from(val: T) -> GValue

Converts to this type from the input type.
source§

impl From<TextP> for GValue

source§

fn from(val: TextP) -> GValue

Converts to this type from the input type.
source§

impl From<Token> for GValue

source§

fn from(val: Token) -> Self

Converts to this type from the input type.
source§

impl From<TraversalExplanation> for GValue

source§

fn from(val: TraversalExplanation) -> Self

Converts to this type from the input type.
source§

impl From<TraversalMetrics> for GValue

source§

fn from(val: TraversalMetrics) -> Self

Converts to this type from the input type.
source§

impl From<Traverser> for GValue

source§

fn from(val: Traverser) -> Self

Converts to this type from the input type.
source§

impl From<Uuid> for GValue

source§

fn from(val: Uuid) -> GValue

Converts to this type from the input type.
source§

impl From<Vec<GValue>> for GValue

source§

fn from(val: Vec<GValue>) -> Self

Converts to this type from the input type.
source§

impl From<Vertex> for GValue

source§

fn from(val: Vertex) -> Self

Converts to this type from the input type.
source§

impl From<VertexProperty> for GValue

source§

fn from(val: VertexProperty) -> Self

Converts to this type from the input type.
source§

impl From<bool> for GValue

source§

fn from(val: bool) -> GValue

Converts to this type from the input type.
source§

impl From<f32> for GValue

source§

fn from(val: f32) -> Self

Converts to this type from the input type.
source§

impl From<f64> for GValue

source§

fn from(val: f64) -> Self

Converts to this type from the input type.
source§

impl From<i32> for GValue

source§

fn from(val: i32) -> Self

Converts to this type from the input type.
source§

impl From<i64> for GValue

source§

fn from(val: i64) -> Self

Converts to this type from the input type.
source§

impl PartialEq for GValue

source§

fn eq(&self, other: &GValue) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl TryFrom<&GValue> for HashSet<DateTime<Utc>>

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: &GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<&GValue> for HashSet<String>

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: &GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<&GValue> for HashSet<Uuid>

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: &GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<&GValue> for HashSet<bool>

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: &GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<&GValue> for HashSet<i32>

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: &GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<&GValue> for HashSet<i64>

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: &GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<&GValue> for Vec<DateTime<Utc>>

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: &GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<&GValue> for Vec<String>

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: &GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<&GValue> for Vec<Uuid>

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: &GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<&GValue> for Vec<bool>

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: &GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<&GValue> for Vec<f32>

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: &GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<&GValue> for Vec<f64>

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: &GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<&GValue> for Vec<i32>

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: &GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<&GValue> for Vec<i64>

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: &GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<GValue> for BTreeMap<String, GValue>

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<GValue> for DateTime<Utc>

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<GValue> for HashMap<GKey, GValue>

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<GValue> for HashMap<String, GValue>

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<GValue> for HashSet<DateTime<Utc>>

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<GValue> for HashSet<String>

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<GValue> for HashSet<Uuid>

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<GValue> for HashSet<bool>

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<GValue> for HashSet<i32>

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<GValue> for HashSet<i64>

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<GValue> for Option<DateTime<Utc>>

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<GValue> for Option<String>

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<GValue> for Option<Uuid>

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<GValue> for Option<bool>

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<GValue> for Option<f32>

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<GValue> for Option<f64>

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<GValue> for Option<i32>

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<GValue> for Option<i64>

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<GValue> for String

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<GValue> for Uuid

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<GValue> for Vec<DateTime<Utc>>

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<GValue> for Vec<String>

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<GValue> for Vec<Uuid>

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<GValue> for Vec<bool>

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<GValue> for Vec<f32>

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<GValue> for Vec<f64>

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<GValue> for Vec<i32>

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<GValue> for Vec<i64>

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<GValue> for bool

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<GValue> for f32

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<GValue> for f64

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<GValue> for i32

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl TryFrom<GValue> for i64

§

type Error = GremlinError

The type returned in the event of a conversion error.
source§

fn try_from(value: GValue) -> GremlinResult<Self>

Performs the conversion.
source§

impl StructuralPartialEq for GValue

Auto Trait Implementations§

§

impl Freeze for GValue

§

impl RefUnwindSafe for GValue

§

impl Send for GValue

§

impl Sync for GValue

§

impl Unpin for GValue

§

impl UnwindSafe for GValue

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V