MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / clone

Method clone

src/sql/src/session/vars/constraints.rs:66–72  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

64
65impl Clone for ValueConstraint {
66 fn clone(&self) -> Self {
67 match self {
68 ValueConstraint::Fixed => ValueConstraint::Fixed,
69 ValueConstraint::ReadOnly => ValueConstraint::ReadOnly,
70 ValueConstraint::Domain(c) => ValueConstraint::Domain(*c),
71 }
72 }
73}
74
75/// A type erased version of [`DomainConstraint`] that we can reference on a [`VarDefinition`].

Callers 2

box_cloneMethod · 0.45
parseMethod · 0.45

Calls 1

DomainClass · 0.85

Tested by

no test coverage detected