Searched defs:SimpleSliceBasedMetadata (Results 1 – 2 of 2) sorted by relevance
30 struct SimpleSliceBasedMetadata { struct31 using ValueType = Slice;32 using MementoType = Slice;33 static MementoType ParseMemento(Slice value, MetadataParseErrorFn) { in ParseMemento()36 static ValueType MementoToValue(MementoType value) { return value; } in MementoToValue()37 static Slice Encode(const ValueType& x) { return x.Ref(); } in Encode()38 static absl::string_view DisplayValue(const ValueType& value) { in DisplayValue()41 static absl::string_view DisplayMemento(const MementoType& value) { in DisplayMemento()
30 struct SimpleSliceBasedMetadata { struct31 using ValueType = Slice;32 using MementoType = Slice;33 static MementoType ParseMemento(Slice value, in ParseMemento()42 static ValueType MementoToValue(MementoType value) { return value; } in MementoToValue()43 static Slice Encode(const ValueType& x) { return x.Ref(); } in Encode()44 static absl::string_view DisplayValue(const ValueType& value) { in DisplayValue()47 static absl::string_view DisplayMemento(const MementoType& value) { in DisplayMemento()