diff options
author | fokinv <fokin.valentin@stud.u-szeged.hu> | 2016-03-31 10:35:24 +0200 |
---|---|---|
committer | Attila Dusnoki <dati91@gmail.com> | 2016-05-03 10:17:42 +0200 |
commit | b01c52c18fc0a5280861b1d6339ca83c8a9a1b06 (patch) | |
tree | 1de77cdea0914bd9535e9a909a6594474c95eb25 /components/script/dom/bluetoothuuid.rs | |
parent | 9825ea41b49e4cff5ccccaef0dbeef9a982d7010 (diff) | |
download | servo-b01c52c18fc0a5280861b1d6339ca83c8a9a1b06.tar.gz servo-b01c52c18fc0a5280861b1d6339ca83c8a9a1b06.zip |
Implementation of the getPrimaryService(s), the getCharacteristic(s) and the getDescriptor(s) functions.
Diffstat (limited to 'components/script/dom/bluetoothuuid.rs')
-rw-r--r-- | components/script/dom/bluetoothuuid.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/components/script/dom/bluetoothuuid.rs b/components/script/dom/bluetoothuuid.rs index 1817601dc97..91c581d5d3b 100644 --- a/components/script/dom/bluetoothuuid.rs +++ b/components/script/dom/bluetoothuuid.rs @@ -333,3 +333,12 @@ impl BluetoothUUID { } } } + +impl Clone for StringOrUnsignedLong { + fn clone(&self) -> StringOrUnsignedLong { + match self { + &StringOrUnsignedLong::String(ref s) => StringOrUnsignedLong::String(s.clone()), + &StringOrUnsignedLong::UnsignedLong(ul) => StringOrUnsignedLong::UnsignedLong(ul), + } + } +} |