mastodonien.de

fosstodon.org

Zeitpunkt              Nutzer    Delta   Tröts        TNR     Titel                     Version  maxTL
Di 30.07.2024 00:00:20    61.967      +2    3.590.362    57,9 Fosstodon                 4.2.10     500
Mo 29.07.2024 00:00:12    61.965      -1    3.587.302    57,9 Fosstodon                 4.2.10     500
So 28.07.2024 00:00:15    61.966      +3    3.586.611    57,9 Fosstodon                 4.2.10     500
Sa 27.07.2024 00:00:14    61.963      +5    3.583.830    57,8 Fosstodon                 4.2.10     500
Fr 26.07.2024 00:01:07    61.958      +1    3.580.868    57,8 Fosstodon                 4.2.10     500
Do 25.07.2024 00:00:10    61.957      +1    3.577.506    57,7 Fosstodon                 4.2.10     500
Mi 24.07.2024 00:01:07    61.956       0    3.574.077    57,7 Fosstodon                 4.2.10     500
Di 23.07.2024 00:00:03    61.956      -3    3.570.705    57,6 Fosstodon                 4.2.10     500
Mo 22.07.2024 00:01:10    61.959      +1    3.567.825    57,6 Fosstodon                 4.2.10     500
So 21.07.2024 00:01:07    61.958       0    3.564.861    57,5 Fosstodon                 4.2.10     500

Di 30.07.2024 01:40

Orphan rules prevent me from writing a blanket implementation of `From` for `Option` types, but I don’t really understand why. Since my implementation doesn’t touch the underlying implementation of `From` for `U`, I feel like I should be able to get away with this.

impl<T, U> From<Option<T>> for Option<U>
where U: From<T>
{
    fn from(t: Option<T>) -> Self {
        if let Some(t) = t {
            Some(t.into())
        } else {
            None
        }
    }
}

impl From> for Option where U: From { fn from(t: Option) -> Self { if let Some(t) = t { Some(t.into()) } else { None } } }

[Öffentlich] Antw.: 0 Wtrl.: 0 Fav.: 0

Antw. · Weiterl. · Fav. · Lesez. · Pin · Stumm · Löschen