chromium/media/learning/mojo/public/cpp/learning_mojom_traits.cc

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "media/learning/mojo/public/cpp/learning_mojom_traits.h"

namespace mojo {

// static
bool StructTraits<media::learning::mojom::LabelledExampleDataView,
                  media::learning::LabelledExample>::
    Read(media::learning::mojom::LabelledExampleDataView data,
         media::learning::LabelledExample* out_example) {}

// static
bool StructTraits<media::learning::mojom::FeatureValueDataView,
                  media::learning::FeatureValue>::
    Read(media::learning::mojom::FeatureValueDataView data,
         media::learning::FeatureValue* out_feature_value) {}

// static
bool StructTraits<media::learning::mojom::TargetValueDataView,
                  media::learning::TargetValue>::
    Read(media::learning::mojom::TargetValueDataView data,
         media::learning::TargetValue* out_target_value) {}

// static
bool StructTraits<media::learning::mojom::ObservationCompletionDataView,
                  media::learning::ObservationCompletion>::
    Read(media::learning::mojom::ObservationCompletionDataView data,
         media::learning::ObservationCompletion* out_observation_completion) {}

// static
bool StructTraits<media::learning::mojom::TargetHistogramPairDataView,
                  media::learning::TargetHistogramPair>::
    Read(media::learning::mojom::TargetHistogramPairDataView data,
         media::learning::TargetHistogramPair* out_pair) {}

// static
bool StructTraits<media::learning::mojom::TargetHistogramDataView,
                  media::learning::TargetHistogram>::
    Read(media::learning::mojom::TargetHistogramDataView data,
         media::learning::TargetHistogram* out_target_histogram) {}

}  // namespace mojo