MCPcopy Create free account
hub / github.com/emwalker/digraph / from

Method from

backend/src/bin/export.rs:73–80  ·  view source on GitHub ↗
(row: &SynonymRow)

Source from the content-addressed store, hash-verified

71
72impl From<&SynonymRow> for Synonym {
73 fn from(row: &SynonymRow) -> Self {
74 use std::str::FromStr;
75 Self {
76 added: row.added,
77 locale: Locale::from_str(&row.locale).unwrap_or(Locale::EN),
78 name: row.name.clone(),
79 }
80 }
81}
82
83#[derive(FromRow)]

Callers

nothing calls this directly

Calls 1

from_strFunction · 0.85

Tested by

no test coverage detected