character_traits_relational_expectations/
impl_from.rs

1// ---------------- [ File: character-traits-relational-expectations/src/impl_from.rs ]
2crate::ix!();
3
4/* ----------  Smart constructors & logging ---------- */
5
6impl From<RelationalAppreciation> for RelationalExpectation {
7    fn from(src: RelationalAppreciation) -> Self {
8        trace!(?src, "Wrapping appreciation");
9        Self::Appreciation(src)
10    }
11}
12impl From<RelationalDemand> for RelationalExpectation {
13    fn from(src: RelationalDemand) -> Self {
14        trace!(?src, "Wrapping demand");
15        Self::Demand(src)
16    }
17}
18impl From<RelationalExpectationDetail> for RelationalExpectation {
19    fn from(src: RelationalExpectationDetail) -> Self {
20        trace!(?src, "Wrapping expectation detail");
21        Self::Expectation(src)
22    }
23}
24impl From<RelationalPreference> for RelationalExpectation {
25    fn from(src: RelationalPreference) -> Self {
26        trace!(?src, "Wrapping preference");
27        Self::Preference(src)
28    }
29}
30impl From<RelationalRequirement> for RelationalExpectation {
31    fn from(src: RelationalRequirement) -> Self {
32        trace!(?src, "Wrapping requirement");
33        Self::Requirement(src)
34    }
35}
36impl From<RelationalSeeking> for RelationalExpectation {
37    fn from(src: RelationalSeeking) -> Self {
38        trace!(?src, "Wrapping seeking");
39        Self::Seeking(src)
40    }
41}
42impl From<RelationalValue> for RelationalExpectation {
43    fn from(src: RelationalValue) -> Self {
44        trace!(?src, "Wrapping value");
45        Self::Value(src)
46    }
47}