arabic_script/core/characters/
arabic_shadda.rs

1/**************************************************************************************************
2 * Copyright 2023 Tamer Elzein <tamer@tamerudition.com>                                           *
3 *                                                                                                *
4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file      *
5 * except in compliance with the License. You may obtain a copy of the License at                 *
6 *                                                                                                *
7 * http://www.apache.org/licenses/LICENSE-2.0                                                     *
8 *                                                                                                *
9 * Unless required by applicable law or agreed to in writing, software distributed under the      *
10 * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,      *
11 * either express or implied. See the License for the specific language governing permissions     *
12 * and limitations under the License.                                                             *
13 **************************************************************************************************/
14
15use crate::core::UnicodeCharacter;
16
17/// Represents the Arabic Shadda.
18pub struct ArabicShadda;
19
20impl ArabicShadda {
21    /// Returns a new instance of the Arabic Shadda.
22    pub fn new() -> Self {
23        Self
24    }
25}
26
27impl UnicodeCharacter for ArabicShadda {
28    fn block(&self) -> &'static str {
29        "Arabic"
30    }
31
32    fn name(&self) -> &'static str {
33        "Arabic Shadda"
34    }
35
36    fn scalar_value(&self) -> char {
37        '\u{0651}'
38    }
39}